summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/editor/WallpaperPicker.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/javascripts/ui/editor/WallpaperPicker.js')
-rw-r--r--public/assets/javascripts/ui/editor/WallpaperPicker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/editor/WallpaperPicker.js b/public/assets/javascripts/ui/editor/WallpaperPicker.js
index 59dc7dd..ffbd935 100644
--- a/public/assets/javascripts/ui/editor/WallpaperPicker.js
+++ b/public/assets/javascripts/ui/editor/WallpaperPicker.js
@@ -3,6 +3,7 @@ var WallpaperPicker = View.extend({
el: ".wallpaper",
events: {
+ "click .paper1": 'pick',
},
toggle: function(){
@@ -10,5 +11,10 @@ var WallpaperPicker = View.extend({
// toggle the class that makes the cursor a paintbucket
// $("body").removeClass("pastePaper");
},
+
+ pick: function(e){
+ $("body").toggleClass("pastePaper");
+ $(e.currentTarget).toggleClass("active");
+ }
})