aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-sheet.reel/style-sheet.js
diff options
context:
space:
mode:
authorEric Guzman2012-05-21 09:39:11 -0700
committerEric Guzman2012-05-21 09:39:11 -0700
commitfbdfb46071c5f1c081f3703ddf35ef009decf167 (patch)
tree9a6665c278edfb20f2f22fa3e45c6e807fd53186 /js/panels/css-panel/style-sheet.reel/style-sheet.js
parenta8e97144c832e355de7f8177ce38644119248e87 (diff)
downloadninja-fbdfb46071c5f1c081f3703ddf35ef009decf167.tar.gz
Style sheet - Added disabled style to sheet item
Diffstat (limited to 'js/panels/css-panel/style-sheet.reel/style-sheet.js')
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js
index 7afe977f..98e20b2c 100644
--- a/js/panels/css-panel/style-sheet.reel/style-sheet.js
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js
@@ -55,6 +55,12 @@ exports.StyleSheet = Montage.create(Component, {
55 this.nameText.element.classList.remove('ss-dirty'); 55 this.nameText.element.classList.remove('ss-dirty');
56 } 56 }
57 57
58 if(this.disabled) {
59 this.element.classList.add('ss-disabled');
60 } else {
61 this.element.classList.remove('ss-disabled');
62 }
63
58 } 64 }
59 }, 65 },
60 66
@@ -182,6 +188,7 @@ exports.StyleSheet = Montage.create(Component, {
182 this.disableButton.label = label; 188 this.disableButton.label = label;
183 189
184 this._disabled = disable; 190 this._disabled = disable;
191 this.needsDraw = true;
185 } 192 }
186 }, 193 },
187 194