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.js24
1 files changed, 1 insertions, 23 deletions
diff --git a/public/assets/javascripts/ui/editor/Presets.js b/public/assets/javascripts/ui/editor/Presets.js
index 1e70aa2..6222e33 100644
--- a/public/assets/javascripts/ui/editor/Presets.js
+++ b/public/assets/javascripts/ui/editor/Presets.js
@@ -7,22 +7,6 @@ var Presets = View.extend({
"click .swatches span": "selectColor",
},
- colors: [
- [255,94,58],
- [255,149,0],
- [255,219,76],
- [76,217,100],
- [52,170,220],
- [29,98,240],
- [198,68,252],
- [0,0,0],
- [74,74,74],
- [125,126,127],
- [209,211,212],
- [235,235,235],
- [255,255,255],
- ],
-
presets: {
wireframe: {
wall: [255,255,255],
@@ -52,13 +36,6 @@ var Presets = View.extend({
initialize: function(opt){
this.parent = opt.parent
- this.$colors = this.$(".colors")
- this.colors.forEach(function(color){
- var $swatch = $("<span>")
- $swatch.css("background-color","rgb(" + color + ")")
- $swatch.data('color', color)
- this.$colors.append($swatch)
- }.bind(this))
},
toggle: function(state){
@@ -66,6 +43,7 @@ var Presets = View.extend({
},
show: function(){
+ this.parent.cursor.show("presets")
this.toggle(true)
},