diff options
author | Valerio Virgillito | 2012-05-31 11:06:43 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-31 11:06:43 -0700 |
commit | 19e3d87a8428a44c9edf3df47998c3bfe93b3c90 (patch) | |
tree | 707e789f7e9af3568b262ef3ab113175f0629484 /js/panels/css-panel/styles-view-delegate.js | |
parent | d04aa0b195826b3b3c70f68aa8aba1be9e30a648 (diff) | |
parent | 6042bdc5f2aada4412912fd01602d32c9088dc26 (diff) | |
download | ninja-19e3d87a8428a44c9edf3df47998c3bfe93b3c90.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into document-bindings-fix
Diffstat (limited to 'js/panels/css-panel/styles-view-delegate.js')
-rw-r--r-- | js/panels/css-panel/styles-view-delegate.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js index 454008fa..078bd521 100644 --- a/js/panels/css-panel/styles-view-delegate.js +++ b/js/panels/css-panel/styles-view-delegate.js | |||
@@ -75,6 +75,13 @@ exports.StylesViewDelegate = Montage.create(Component, { | |||
75 | this._dispatchChange(); | 75 | this._dispatchChange(); |
76 | } | 76 | } |
77 | }, | 77 | }, |
78 | |||
79 | handleSelectorStop : { | ||
80 | value: function(rule, newSelector, ruleComponent) { | ||
81 | ruleComponent.declarationComponent.repetition.childComponents[0].propertyField.start() | ||
82 | } | ||
83 | }, | ||
84 | |||
78 | _getClassNameFromSelector : { | 85 | _getClassNameFromSelector : { |
79 | value: function(selectorText) { | 86 | value: function(selectorText) { |
80 | var results = /.*\.([A-Za-z0-9_-]+)\:?[A-Za-z0-9_"=-]*$/.exec(selectorText); | 87 | var results = /.*\.([A-Za-z0-9_-]+)\:?[A-Za-z0-9_"=-]*$/.exec(selectorText); |
@@ -145,7 +152,7 @@ exports.StylesViewDelegate = Montage.create(Component, { | |||
145 | if(nextFocus) { | 152 | if(nextFocus) { |
146 | nextFocus.propertyField.start(); | 153 | nextFocus.propertyField.start(); |
147 | } else if(style.dirty) { | 154 | } else if(style.dirty) { |
148 | style.parentComponent.parentComponent.addNewStyle(); | 155 | style.parentComponent.parentComponent.addNewStyle(true); |
149 | style.editingNewStyle = false; | 156 | style.editingNewStyle = false; |
150 | setTimeout(function() { | 157 | setTimeout(function() { |
151 | style.getSiblingStyle('next').propertyField.start(); | 158 | style.getSiblingStyle('next').propertyField.start(); |