aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorEric Guzman2012-06-26 13:10:16 -0700
committerEric Guzman2012-06-26 13:10:16 -0700
commite6f9e4ba68d6d3deed4b04427abca1a97320064d (patch)
treecd25e08005a6094724e1103b2d797aa9bee699f7 /js/panels
parentdea90d1bb0b903a7497cdf7de9ae60799e60d5b1 (diff)
downloadninja-e6f9e4ba68d6d3deed4b04427abca1a97320064d.tar.gz
IKNINJA-1667 - Fix for JIRA issue involving updating rule list on selection change.
Diffstat (limited to 'js/panels')
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
index 509ca565..f53937e6 100644
--- a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
+++ b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js
@@ -39,11 +39,13 @@ exports.RuleListContainer = Montage.create(Component, {
39 value: function(selection) { 39 value: function(selection) {
40 var list = this._getListForSelection(selection); 40 var list = this._getListForSelection(selection);
41 41
42 if(!list) { 42 if(list) {
43 this.displayedList = list;
44 this.update();
45 } else {
43 list = this.add(selection); 46 list = this.add(selection);
47 this.displayedList = list;
44 } 48 }
45
46 this.displayedList = list;
47 } 49 }
48 }, 50 },
49 51