diff options
author | Kruti Shah | 2012-06-12 13:09:11 -0700 |
---|---|---|
committer | Kruti Shah | 2012-06-12 13:09:11 -0700 |
commit | d648c842905c7c53e0f89b943982493d2b79f56e (patch) | |
tree | eb5585f92061975215f6d19305a8d1b76262e2fc /js/panels/css-panel/styles-view-delegate.js | |
parent | bedb38e14887b29eae3cdf1c8d435259c920257c (diff) | |
parent | cf3b96822665751dae7a64644db3cb3960733c3d (diff) | |
download | ninja-d648c842905c7c53e0f89b943982493d2b79f56e.tar.gz |
Merge branch 'refs/heads/TimelineUberjd' into TimelineUber
Conflicts:
js/controllers/elements/element-controller.js
js/document/_toDelete/html-document.js
js/panels/Timeline/Layer.reel/Layer.js
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/css-panel/styles-view-delegate.js')
-rw-r--r-- | js/panels/css-panel/styles-view-delegate.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js index 454008fa..87686826 100644 --- a/js/panels/css-panel/styles-view-delegate.js +++ b/js/panels/css-panel/styles-view-delegate.js | |||
@@ -30,7 +30,7 @@ exports.StylesViewDelegate = Montage.create(Component, { | |||
30 | value: function(selector, direction) { | 30 | value: function(selector, direction) { |
31 | if(!selector) { return false; } | 31 | if(!selector) { return false; } |
32 | 32 | ||
33 | var elements = this.stylesController._activeDocument.model.views.design.document.querySelectorAll(selector), | 33 | var elements = this.stylesController.currentDocument.model.views.design.document.querySelectorAll(selector), |
34 | method = (direction === "out") ? "remove" : "add"; | 34 | method = (direction === "out") ? "remove" : "add"; |
35 | 35 | ||
36 | Array.prototype.slice.call(elements).forEach(function(el) { | 36 | Array.prototype.slice.call(elements).forEach(function(el) { |
@@ -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(); |