summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/editor/Presets.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/javascripts/ui/editor/Presets.js')
-rw-r--r--public/assets/javascripts/ui/editor/Presets.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/public/assets/javascripts/ui/editor/Presets.js b/public/assets/javascripts/ui/editor/Presets.js
index 4cd4eea..be86af3 100644
--- a/public/assets/javascripts/ui/editor/Presets.js
+++ b/public/assets/javascripts/ui/editor/Presets.js
@@ -5,8 +5,6 @@ var Presets = View.extend({
"mousedown": "stopPropagation",
"click .presets span": "selectPreset",
"click .swatches span": "selectColor",
- "change .url": "tileWalls",
- "keydown .url": "enterSetUrl",
},
presets: {
@@ -46,8 +44,6 @@ var Presets = View.extend({
initialize: function(opt){
this.parent = opt.parent
- this.$url = this.$(".url")
-
this.$presets = this.$(".presets")
_.keys(this.presets).forEach(function(name){
var $swatch = $("<span>")
@@ -102,21 +98,5 @@ var Presets = View.extend({
Walls.setBodyColor()
this.lastPreset = preset
},
-
- tileWalls: function(){
- var url = this.$url.sanitize()
- if (url.length && url.indexOf("http://") == 0) {
- Walls.setWallpaper.wall({ src: url })
- Walls.setWallpaper.floor({ src: url })
- Walls.setWallpaper.ceiling({ src: url })
- }
- app.controller.wallpaperPicker.addUrl(url)
- },
- enterSetUrl: function (e) {
- e.stopPropagation()
- if (e.keyCode == 13) {
- setTimeout(this.tileWalls.bind(this), 100)
- }
- },
}) \ No newline at end of file