diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-08-08 17:07:17 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-08-08 17:07:17 -0400 |
| commit | f837f1af0033fd351474df3beeed4818b1859e5b (patch) | |
| tree | 649ff69b625f6f36892b59adbf4eb74770b4d7e5 /public/assets/javascripts/ui/editor/WallpaperPicker.js | |
| parent | a5025cb5b55e8bd7bcde314a500528dd255394e1 (diff) | |
| parent | 5ee6e8bc71861a2ab7c91a8289107e78fd216fc2 (diff) | |
merge
Diffstat (limited to 'public/assets/javascripts/ui/editor/WallpaperPicker.js')
| -rw-r--r-- | public/assets/javascripts/ui/editor/WallpaperPicker.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/public/assets/javascripts/ui/editor/WallpaperPicker.js b/public/assets/javascripts/ui/editor/WallpaperPicker.js index cb1e361..9ee441b 100644 --- a/public/assets/javascripts/ui/editor/WallpaperPicker.js +++ b/public/assets/javascripts/ui/editor/WallpaperPicker.js @@ -23,11 +23,17 @@ var WallpaperPicker = View.extend({ wm.init() }, - toggle: function(){ - this.$el.toggleClass("active"); + toggle: function(state){ + this.$el.toggleClass("active", state); // toggle the class that makes the cursor a paintbucket // $("body").removeClass("pastePaper"); }, + show: function(){ + this.toggle(true) + }, + hide: function(){ + this.toggle(false) + }, pick: function(e){ var $swatch = $(e.currentTarget) |
