diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-09-29 17:12:44 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-09-29 17:12:44 -0400 |
| commit | 69e52fdf43ac9314d23b3c2016f42a944156e6f0 (patch) | |
| tree | 272d2804bb19f754522d9935086cf6af4f422bd3 /public/assets/javascripts/ui/editor/EditorSettings.js | |
| parent | f378a60b4ce813216eaba03bd266559c56c4a54d (diff) | |
hide scissors
Diffstat (limited to 'public/assets/javascripts/ui/editor/EditorSettings.js')
| -rw-r--r-- | public/assets/javascripts/ui/editor/EditorSettings.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/editor/EditorSettings.js b/public/assets/javascripts/ui/editor/EditorSettings.js index 0a3364b..de47be4 100644 --- a/public/assets/javascripts/ui/editor/EditorSettings.js +++ b/public/assets/javascripts/ui/editor/EditorSettings.js @@ -41,6 +41,16 @@ var EditorSettings = FormView.extend({ else { this.parent.lightControl.loadDefaults() } + + if (data.walls) { + data.walls.some(function(wall){ + if (wall.background !== "none") { + this.parent.wallpaperPicker.$remove.show() + return true + } + return false + }.bind(this)) + } if (data.isNew) { this.$name.val( "Room " + moment().format("DD/MM/YYYY ha") ) |
