summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/editor/HelpCursor.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-10-24 16:59:55 -0400
committerJules Laplace <jules@okfoc.us>2014-10-24 16:59:55 -0400
commit50081fb074705175ef860212974213bd4d8cb8a4 (patch)
tree8c1a250bdc04cdcda4e77020c1fb968d7508f1a9 /public/assets/javascripts/ui/editor/HelpCursor.js
parent79e6a5d6d44fb82ab03c79ea58efd0f94b316e2f (diff)
parent25a60bb0f9e4bd3944bcd3cf88d28056c6b11436 (diff)
merge
Diffstat (limited to 'public/assets/javascripts/ui/editor/HelpCursor.js')
-rw-r--r--public/assets/javascripts/ui/editor/HelpCursor.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/public/assets/javascripts/ui/editor/HelpCursor.js b/public/assets/javascripts/ui/editor/HelpCursor.js
index d0e1825..de0ca01 100644
--- a/public/assets/javascripts/ui/editor/HelpCursor.js
+++ b/public/assets/javascripts/ui/editor/HelpCursor.js
@@ -16,7 +16,7 @@ var HelpCursor = View.extend({
},
initialize: function(){
- $('#help-button').click(this.toggle.bind(this));
+ $('#help-button').click(this.toggle.bind(this))
},
toggle: function(){
@@ -28,10 +28,6 @@ var HelpCursor = View.extend({
this.active = true
this.message('start')
this.$el.show()
-// $('body').chardinJs('start')
-// $(window).one("click", function(){
-// $('body').chardinJs('stop')
-// })
this.move({ pageX: -1000, pageY: -10000 })
this.moveFn = this.move.bind(this)
document.addEventListener("mousemove", this.moveFn)
@@ -52,7 +48,12 @@ var HelpCursor = View.extend({
},
show: function(name){
- this.showMessage(name)
+ if (this.active) {
+ this.$el.show()
+ }
+ },
+ hide: function(){
+ this.$el.hide()
},
message: function(name){