mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
fix selection in typeahead menu
This commit is contained in:
parent
9e7fa8eecd
commit
060c5f6a00
|
@ -187,8 +187,8 @@
|
||||||
|
|
||||||
this.$menu
|
this.$menu
|
||||||
.on('click', $.proxy(this.click, this))
|
.on('click', $.proxy(this.click, this))
|
||||||
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
.on('mouseenter', this.options.itemtag, $.proxy(this.mouseenter, this))
|
||||||
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
.on('mouseleave', this.options.itemtag, $.proxy(this.mouseleave, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
, eventSupported: function(eventName) {
|
, eventSupported: function(eventName) {
|
||||||
|
@ -316,6 +316,7 @@
|
||||||
, items: 8
|
, items: 8
|
||||||
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
||||||
, item: '<li><a href="#"></a></li>'
|
, item: '<li><a href="#"></a></li>'
|
||||||
|
, itemtag: 'li'
|
||||||
, minLength: 1
|
, minLength: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,7 @@ function initMost() {
|
||||||
$("#searchfield").typeahead({ /* {{{ */
|
$("#searchfield").typeahead({ /* {{{ */
|
||||||
menu: '<div class="typeahead dropdown-menu" style="max-height: 500px; overflow-y: auto;"></div>',
|
menu: '<div class="typeahead dropdown-menu" style="max-height: 500px; overflow-y: auto;"></div>',
|
||||||
item: '<a class="dropdown-item" href="#"></a>',
|
item: '<a class="dropdown-item" href="#"></a>',
|
||||||
|
itemtag: 'a',
|
||||||
minLength: 3,
|
minLength: 3,
|
||||||
items: 100, /* the query will limit the number of hits */
|
items: 100, /* the query will limit the number of hits */
|
||||||
source: function(query, process) {
|
source: function(query, process) {
|
||||||
|
@ -186,6 +187,7 @@ function initMost() {
|
||||||
$("[id^=choosedocsearch]").typeahead({ /* {{{ */
|
$("[id^=choosedocsearch]").typeahead({ /* {{{ */
|
||||||
menu: '<div class="typeahead dropdown-menu"></div>',
|
menu: '<div class="typeahead dropdown-menu"></div>',
|
||||||
item: '<a class="dropdown-item" href="#"></a>',
|
item: '<a class="dropdown-item" href="#"></a>',
|
||||||
|
itemtag: 'a',
|
||||||
minLength: 3,
|
minLength: 3,
|
||||||
source: function(query, process) {
|
source: function(query, process) {
|
||||||
// console.log(this.options);
|
// console.log(this.options);
|
||||||
|
@ -237,6 +239,7 @@ function initMost() {
|
||||||
$("[id^=choosefoldersearch]").typeahead({ /* {{{ */
|
$("[id^=choosefoldersearch]").typeahead({ /* {{{ */
|
||||||
menu: '<div class="typeahead dropdown-menu"></div>',
|
menu: '<div class="typeahead dropdown-menu"></div>',
|
||||||
item: '<a class="dropdown-item" href="#"></a>',
|
item: '<a class="dropdown-item" href="#"></a>',
|
||||||
|
itemtag: 'a',
|
||||||
minLength: 3,
|
minLength: 3,
|
||||||
source: function(query, process) {
|
source: function(query, process) {
|
||||||
// console.log(this.options);
|
// console.log(this.options);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user