diff options
Diffstat (limited to 'js/panels/css-panel/styles-view-delegate.js')
-rw-r--r-- | js/panels/css-panel/styles-view-delegate.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js index c3bfdc75..71b4a8dd 100644 --- a/js/panels/css-panel/styles-view-delegate.js +++ b/js/panels/css-panel/styles-view-delegate.js | |||
@@ -184,7 +184,8 @@ exports.StylesViewMediator = Montage.create(Component, { | |||
184 | if(nextFocus) { | 184 | if(nextFocus) { |
185 | nextFocus.propertyField.start(); | 185 | nextFocus.propertyField.start(); |
186 | } else { | 186 | } else { |
187 | style.treeView.parentComponent.addNewStyleAfter(style); | 187 | //style.parentComponent.parentComponent.addNewStyleAfter(style); |
188 | style.parentComponent.parentComponent.addNewStyle(); | ||
188 | style.editingNewStyle = false; | 189 | style.editingNewStyle = false; |
189 | setTimeout(function() { | 190 | setTimeout(function() { |
190 | style.getSiblingStyle('next').propertyField.start(); | 191 | style.getSiblingStyle('next').propertyField.start(); |
@@ -253,7 +254,7 @@ exports.StylesViewMediator = Montage.create(Component, { | |||
253 | this._dispatchChange(property, browserValue); | 254 | this._dispatchChange(property, browserValue); |
254 | 255 | ||
255 | if(style.editingNewStyle) { | 256 | if(style.editingNewStyle) { |
256 | style.treeView.parentComponent.addNewStyleAfter(style); | 257 | style.parentComponent.parentComponent.addNewStyle(); |
257 | style.editingNewStyle = false; | 258 | style.editingNewStyle = false; |
258 | } | 259 | } |
259 | } | 260 | } |