diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-17 11:34:28 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-17 11:34:28 -0500 |
| commit | a122c8137152cb7d6c1a398033364b200330b6ee (patch) | |
| tree | 59bef3472d220d25bc034a37aa5e377ffa134c7a | |
| parent | 84d606cc4c56778ae7e6b8b7d86e100131717a53 (diff) | |
autosave after tweaking wallpaper size
| -rw-r--r-- | public/assets/javascripts/ui/editor/WallpaperPicker.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/editor/WallpaperPicker.js b/public/assets/javascripts/ui/editor/WallpaperPicker.js index c383489..e2aaeb7 100644 --- a/public/assets/javascripts/ui/editor/WallpaperPicker.js +++ b/public/assets/javascripts/ui/editor/WallpaperPicker.js @@ -186,10 +186,19 @@ var WallpaperPicker = UploadView.extend({ this.$scale.val( Math.log( this.wall.background.scale ) ) }, + scaleTimeout: null, updateScale: function(){ if (! this.wall) return; var scale = Math.exp( parseFloat(this.$scale.val()) ) this.wall.wallpaperPosition({ scale: scale }) + + clearTimeout(this.scaleTimeout) + this.scaleTimeout = setTimeout(function(){ + + // TODO: watch individual scenery object here + Minotaur.watch( app.router.editorView.settings ) + + }.bind(this), 500) }, enterUrl: function(){ |
