mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
trimmed query matching
This commit is contained in:
parent
85d6f58c0b
commit
efb5c4f79d
3 changed files with 4 additions and 3 deletions
3
httpdocs/js/bootstrap3-typeahead.js
vendored
3
httpdocs/js/bootstrap3-typeahead.js
vendored
|
|
@ -216,7 +216,8 @@
|
|||
|
||||
matcher: function (item) {
|
||||
var text = this.displayText(item);
|
||||
return ~text.toLowerCase().indexOf(this.query.toLowerCase());
|
||||
// trim the final trailing spaces
|
||||
return ~text.toLowerCase().indexOf(this.query.trimEnd().toLowerCase());
|
||||
},
|
||||
|
||||
sorter: function (items) {
|
||||
|
|
|
|||
2
httpdocs/js/jquery_bootstrap.min.js
vendored
2
httpdocs/js/jquery_bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue