aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel
diff options
context:
space:
mode:
authorEric Guzman2012-04-13 01:43:40 -0700
committerEric Guzman2012-04-13 01:43:40 -0700
commite973b5cfff38c1be97314f2944a83a9afa98feac (patch)
tree7637c946566573f9b464220de794df809ab05977 /js/panels/css-panel
parent0a4672001ac5122c512087779e57dc07de4ec1b7 (diff)
downloadninja-e973b5cfff38c1be97314f2944a83a9afa98feac.tar.gz
CSS Rule List - Add inline style to rule list
Diffstat (limited to 'js/panels/css-panel')
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.js9
1 files changed, 9 insertions, 0 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 17bdc2a4..4bad8350 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
@@ -80,6 +80,15 @@ exports.RuleListContainer = Montage.create(Component, {
80 80
81 if(selection.length === 1) { 81 if(selection.length === 1) {
82 rules = stylesController.getMatchingRules(selection[0]); 82 rules = stylesController.getMatchingRules(selection[0]);
83
84 ///// Add inline style to rule list
85 rules.splice(0, 0, {
86 type : 'inline',
87 selectorText : 'element.style',
88 parentStyleSheet : 'Inline Style',
89 style : selection[0].style
90 });
91
83 } //// TODO: support more selection types 92 } //// TODO: support more selection types
84 93
85 this._instanceToAdd = listInstance; 94 this._instanceToAdd = listInstance;