aboutsummaryrefslogtreecommitdiff
path: root/js/panels/color
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-26 13:59:06 -0700
committerJose Antonio Marquez2012-06-26 13:59:06 -0700
commit39ce688e26d3c3607f926cfac7b1f3d35bdde882 (patch)
treeb2ba2d8a6eec9206586d337c00873275c20fc7a0 /js/panels/color
parent81747f839bf5d176a15511303f7d2a0e4028e5bb (diff)
downloadninja-39ce688e26d3c3607f926cfac7b1f3d35bdde882.tar.gz
Fixing hiding gradient popups
Diffstat (limited to 'js/panels/color')
-rwxr-xr-xjs/panels/color/colorpanelpopup.reel/colorpanelpopup.js2
-rwxr-xr-xjs/panels/color/colorpopup-manager.js6
2 files changed, 6 insertions, 2 deletions
diff --git a/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js b/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js
index 4865d3dd..f2e5bb2e 100755
--- a/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js
+++ b/js/panels/color/colorpanelpopup.reel/colorpanelpopup.js
@@ -295,6 +295,8 @@ exports.ColorPanelPopup = Montage.create(Component, {
295 } 295 }
296 // 296 //
297 if (!this.isPopupChip) this.application.ninja.colorController.colorPopupManager.hideColorChipPopup(); 297 if (!this.isPopupChip) this.application.ninja.colorController.colorPopupManager.hideColorChipPopup();
298 //
299 this.application.ninja.colorController.colorPopupManager.hideGradientChipPopup();
298 } 300 }
299 }, 301 },
300 //////////////////////////////////////////////////////////////////// 302 ////////////////////////////////////////////////////////////////////
diff --git a/js/panels/color/colorpopup-manager.js b/js/panels/color/colorpopup-manager.js
index 5be652c9..f4bb9203 100755
--- a/js/panels/color/colorpopup-manager.js
+++ b/js/panels/color/colorpopup-manager.js
@@ -502,10 +502,12 @@ exports.ColorPopupManager = Montage.create(Component, {
502 if (this._popupGradientChipBase && this._popupGradientChipBase.opened) { 502 if (this._popupGradientChipBase && this._popupGradientChipBase.opened) {
503 // 503 //
504 this._popupGradientChipBase.popup.removeEventListener('didDraw', this, false); 504 this._popupGradientChipBase.popup.removeEventListener('didDraw', this, false);
505 //Making sure to return color manager to either stroke or fill (might be a Hack for now) 505 //TODO: Add correct input setback
506 if (this.colorManager.input !== 'stroke' && this.colorManager.input !== 'fill' && this.application.ninja.colorController.colorView.previousInput) { 506 /*
507if (this.colorManager.input !== 'stroke' && this.colorManager.input !== 'fill' && this.application.ninja.colorController.colorView.previousInput) {
507 this.colorManager.input = this.application.ninja.colorController.colorView.previousInput; 508 this.colorManager.input = this.application.ninja.colorController.colorView.previousInput;
508 } 509 }
510*/
509 // 511 //
510 this.application.ninja.popupManager.removePopup(this._popupGradientChipBase.popup.element); 512 this.application.ninja.popupManager.removePopup(this._popupGradientChipBase.popup.element);
511 this._popupGradientChipBase.opened = false; 513 this._popupGradientChipBase.opened = false;