mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Don't require literal search text to be in results - if server returns it, present it to user
This commit is contained in:
parent
4036b268c9
commit
5f4f8f99fd
@ -1094,7 +1094,8 @@
|
||||
$.each(data, function(index, obj) {
|
||||
var name = obj[cfg.displayField];
|
||||
if((cfg.matchCase === true && name.indexOf(q) > -1) ||
|
||||
(cfg.matchCase === false && name.toLowerCase().indexOf(q.toLowerCase()) > -1)) {
|
||||
(cfg.matchCase === false && name.toLowerCase().indexOf(q.toLowerCase()) > -1) ||
|
||||
cfg.strictSuggest === false) {
|
||||
if(cfg.strictSuggest === false || name.toLowerCase().indexOf(q.toLowerCase()) === 0) {
|
||||
filtered.push(obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user