textmodule: remove cursor highlight on mouseover

This commit is contained in:
Felix Niklas 2016-02-02 16:43:37 +01:00
parent ec18fe62bf
commit d7441fd6f9

View file

@ -195,6 +195,7 @@
this.$element.after('<div class="shortcut dropdown"><ul class="dropdown-menu" style="max-height: 200px;"><li><a>-</a></li></ul></div>') this.$element.after('<div class="shortcut dropdown"><ul class="dropdown-menu" style="max-height: 200px;"><li><a>-</a></li></ul></div>')
this.$widget = this.$element.next() this.$widget = this.$element.next()
this.$widget.on('click', 'li', $.proxy(this.onEntryClick, this)) this.$widget.on('click', 'li', $.proxy(this.onEntryClick, this))
this.$widget.on('mousemove', $.proxy(this.onMouseover, this))
} }
// set height of widget // set height of widget
@ -319,6 +320,10 @@
} }
} }
Plugin.prototype.onMouseover = function(event) {
this.$widget.find('.is-active').removeClass('is-active')
}
Plugin.prototype.onEntryClick = function(event) { Plugin.prototype.onEntryClick = function(event) {
var id = $(event.target).data('id') var id = $(event.target).data('id')
this.take(id) this.take(id)