diff options
author | Jose Antonio Marquez | 2012-06-26 16:02:24 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-26 16:02:24 -0700 |
commit | bf5b9e509d034fc9b2cf3aacdcae306781f59f7e (patch) | |
tree | 6b3d3a5d7983468eb0de69ca425307814cd91d32 | |
parent | aa1ca17eb5d46d8e5bcbf2de70f312cfbb779545 (diff) | |
download | ninja-bf5b9e509d034fc9b2cf3aacdcae306781f59f7e.tar.gz |
Fix to remember gradient from chip input
-rwxr-xr-x | js/panels/color/colorpopup-manager.js | 4 |
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 | // |