aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style.reel/style.js
diff options
context:
space:
mode:
authorEric Guzman2012-05-01 12:06:15 -0700
committerEric Guzman2012-05-01 12:06:15 -0700
commit084576ca2dcaaff1184338e0ec4a587ee0dacee7 (patch)
tree83391e752a5e75723b61c08c9e970a108fee6818 /js/panels/css-panel/style.reel/style.js
parent514aee0052f6721758401023accd9a4a56cdd217 (diff)
downloadninja-084576ca2dcaaff1184338e0ec4a587ee0dacee7.tar.gz
CSS Panel - Added code hinting and tooltips
Diffstat (limited to 'js/panels/css-panel/style.reel/style.js')
-rw-r--r--js/panels/css-panel/style.reel/style.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/panels/css-panel/style.reel/style.js b/js/panels/css-panel/style.reel/style.js
index a8939bc6..b079bc73 100644
--- a/js/panels/css-panel/style.reel/style.js
+++ b/js/panels/css-panel/style.reel/style.js
@@ -272,6 +272,8 @@ exports.Style = Montage.create(TreeNode, {
272 templateDidLoad : { 272 templateDidLoad : {
273 value: function() { 273 value: function() {
274 this.delegate = this.treeView.contentController.delegate; 274 this.delegate = this.treeView.contentController.delegate;
275
276 this.propertyField.hints = this.propertyNames;
275 } 277 }
276 }, 278 },
277 279
@@ -312,6 +314,13 @@ exports.Style = Montage.create(TreeNode, {
312 } 314 }
313 }, 315 },
314 316
317 setToolTips : {
318 value: function() {
319 this.propertyField.element.title = this.propertyField.value;
320 this.valueField.element.title = this.valueField.value;
321 }
322 },
323
315 willDraw : { 324 willDraw : {
316 value: function() { 325 value: function() {
317 if(this.invalid) { 326 if(this.invalid) {
@@ -319,6 +328,8 @@ exports.Style = Montage.create(TreeNode, {
319 } else { 328 } else {
320 this._element.removeAttribute('title'); 329 this._element.removeAttribute('title');
321 } 330 }
331
332 this.setToolTips();
322 } 333 }
323 }, 334 },
324 335