diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-27 12:23:07 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-27 12:23:07 -0400 |
| commit | 1efe4601867053e297e91e70388b48e90b12b61f (patch) | |
| tree | 1cae751627860e425050e420c93cb495c84c8de0 /public/assets/javascripts/ui/editor/HelpCursor.js | |
| parent | 50081fb074705175ef860212974213bd4d8cb8a4 (diff) | |
| parent | e92acfd9a8b7b60544c8b85ad856273c732a1935 (diff) | |
merge
Diffstat (limited to 'public/assets/javascripts/ui/editor/HelpCursor.js')
| -rw-r--r-- | public/assets/javascripts/ui/editor/HelpCursor.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/assets/javascripts/ui/editor/HelpCursor.js b/public/assets/javascripts/ui/editor/HelpCursor.js index de0ca01..7268b32 100644 --- a/public/assets/javascripts/ui/editor/HelpCursor.js +++ b/public/assets/javascripts/ui/editor/HelpCursor.js @@ -16,7 +16,9 @@ var HelpCursor = View.extend({ }, initialize: function(){ - $('#help-button').click(this.toggle.bind(this)) + this.helpButton = $('#help-button') + + this.helpButton.click(this.toggle.bind(this)) }, toggle: function(){ @@ -27,6 +29,7 @@ var HelpCursor = View.extend({ if (this.active) return this.active = true this.message('start') + this.helpButton.addClass('active') this.$el.show() this.move({ pageX: -1000, pageY: -10000 }) this.moveFn = this.move.bind(this) @@ -36,6 +39,7 @@ var HelpCursor = View.extend({ stop: function(){ this.active = false this.$el.hide() + this.helpButton.removeClass('active') document.removeEventListener("mousemove", this.moveFn) }, |
