textmodule: remove cursor highlight on mouseover
This commit is contained in:
parent
ec18fe62bf
commit
d7441fd6f9
1 changed files with 5 additions and 0 deletions
|
@ -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.$widget = this.$element.next()
|
||||
this.$widget.on('click', 'li', $.proxy(this.onEntryClick, this))
|
||||
this.$widget.on('mousemove', $.proxy(this.onMouseover, this))
|
||||
}
|
||||
|
||||
// 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) {
|
||||
var id = $(event.target).data('id')
|
||||
this.take(id)
|
||||
|
|
Loading…
Reference in a new issue