diff options
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/elements/body-controller.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/controllers/elements/body-controller.js b/js/controllers/elements/body-controller.js index 0ca6c417..0b6a5bad 100755 --- a/js/controllers/elements/body-controller.js +++ b/js/controllers/elements/body-controller.js | |||
@@ -31,6 +31,8 @@ exports.BodyController = Montage.create(ElementController, { | |||
31 | value: function(el, p) { | 31 | value: function(el, p) { |
32 | switch(p) { | 32 | switch(p) { |
33 | case "background" : | 33 | case "background" : |
34 | case "background-image": | ||
35 | return this.application.ninja.colorController.getColorObjFromCss(this.application.ninja.stylesController.getElementStyle(el, "background-image")); | ||
34 | case "background-color": | 36 | case "background-color": |
35 | return this.application.ninja.colorController.getColorObjFromCss(this.application.ninja.stylesController.getElementStyle(el, "background-color")); | 37 | return this.application.ninja.colorController.getColorObjFromCss(this.application.ninja.stylesController.getElementStyle(el, "background-color")); |
36 | case "border": | 38 | case "border": |
@@ -50,6 +52,9 @@ exports.BodyController = Montage.create(ElementController, { | |||
50 | value: function(el, p, value) { | 52 | value: function(el, p, value) { |
51 | switch(p) { | 53 | switch(p) { |
52 | case "background": | 54 | case "background": |
55 | case "background-image": | ||
56 | this.application.ninja.stylesController.setElementStyle(el, "background-image", value); | ||
57 | break; | ||
53 | case "background-color": | 58 | case "background-color": |
54 | this.application.ninja.stylesController.setElementStyle(el, "background-color", value); | 59 | this.application.ninja.stylesController.setElementStyle(el, "background-color", value); |
55 | break; | 60 | break; |