summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/editor/HelpCursor.js
diff options
context:
space:
mode:
authorryderr <r@okfoc.us>2014-10-29 13:24:11 -0400
committerryderr <r@okfoc.us>2014-10-29 13:24:11 -0400
commit4e159d6b08512cd9a2370763ef296bd0111baf7f (patch)
tree447ad864e73e089dbad1076c51b75e2db3108ba9 /public/assets/javascripts/ui/editor/HelpCursor.js
parent2e863090cda5d6f0d9d96e5be8a7284fa57ec69f (diff)
parente92acfd9a8b7b60544c8b85ad856273c732a1935 (diff)
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/ui/editor/HelpCursor.js')
-rw-r--r--public/assets/javascripts/ui/editor/HelpCursor.js6
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 2752a5f..8ada237 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)
},