diff options
author | Eric Guzman | 2012-03-02 10:55:51 -0800 |
---|---|---|
committer | Eric Guzman | 2012-03-02 10:55:51 -0800 |
commit | 1433f2bdf2e5b8c5c18fed5e9c17fd983ab3606d (patch) | |
tree | 885ed3352f89e124bca7261d7c0edd4c95d3fff5 /js/panels/css-panel/style-sheet.reel/style-sheet.js | |
parent | 53bdb1e7773069c4cca59e88d6da91cd0f58c94a (diff) | |
download | ninja-1433f2bdf2e5b8c5c18fed5e9c17fd983ab3606d.tar.gz |
CSS Panel - Updating components, created toolbar components, and small changes to styles controller
Diffstat (limited to 'js/panels/css-panel/style-sheet.reel/style-sheet.js')
-rw-r--r-- | js/panels/css-panel/style-sheet.reel/style-sheet.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js index a4fe5960..5caf69a4 100644 --- a/js/panels/css-panel/style-sheet.reel/style-sheet.js +++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js | |||
@@ -21,8 +21,15 @@ exports.StyleSheet = Montage.create(Component, { | |||
21 | draw : { | 21 | draw : { |
22 | value: function() { | 22 | value: function() { |
23 | console.log("styles sheet view - draw"); | 23 | console.log("styles sheet view - draw"); |
24 | |||
25 | this.mediaInput.value = this._source.media.mediaText; | ||
24 | } | 26 | } |
25 | }, | 27 | }, |
28 | |||
29 | mediaInput: { | ||
30 | value: null | ||
31 | }, | ||
32 | |||
26 | _name: { | 33 | _name: { |
27 | value: null | 34 | value: null |
28 | }, | 35 | }, |
@@ -44,7 +51,7 @@ exports.StyleSheet = Montage.create(Component, { | |||
44 | set: function(sheet) { | 51 | set: function(sheet) { |
45 | console.log('sheet being set'); | 52 | console.log('sheet being set'); |
46 | if(sheet.href) { | 53 | if(sheet.href) { |
47 | this.name = sheet.href.substring(sheet.href.lastIndexOf('/')); | 54 | this.name = sheet.href.substring(sheet.href.lastIndexOf('/')+1); |
48 | } else { | 55 | } else { |
49 | this.name = 'Style Tag'; | 56 | this.name = 'Style Tag'; |
50 | } | 57 | } |