aboutsummaryrefslogtreecommitdiff
path: root/js/panels/color
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-26 16:02:24 -0700
committerJose Antonio Marquez2012-06-26 16:02:24 -0700
commitbf5b9e509d034fc9b2cf3aacdcae306781f59f7e (patch)
tree6b3d3a5d7983468eb0de69ca425307814cd91d32 /js/panels/color
parentaa1ca17eb5d46d8e5bcbf2de70f312cfbb779545 (diff)
downloadninja-bf5b9e509d034fc9b2cf3aacdcae306781f59f7e.tar.gz
Fix to remember gradient from chip input
Diffstat (limited to 'js/panels/color')
-rwxr-xr-xjs/panels/color/colorpopup-manager.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/panels/color/colorpopup-manager.js b/js/panels/color/colorpopup-manager.js
index 0f8e20e6..c29e338b 100755
--- a/js/panels/color/colorpopup-manager.js
+++ b/js/panels/color/colorpopup-manager.js
@@ -407,6 +407,10 @@ exports.ColorPopupManager = Montage.create(Component, {
407 // 407 //
408 this._popupChipBase.colorManager = ColorModel.create(); 408 this._popupChipBase.colorManager = ColorModel.create();
409 // 409 //
410 if (e._event.srcElement.colorMode === 'gradient'){
411 this._popupChipBase.colorManager.gradient = {value: e._event.srcElement.colorValue};
412 }
413 //
410 this._popupChipBase.addEventListener('change', this, false); 414 this._popupChipBase.addEventListener('change', this, false);
411 this._popupChipBase.addEventListener('changing', this, false); 415 this._popupChipBase.addEventListener('changing', this, false);
412 // 416 //