mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for client autocomplete
This commit is contained in:
parent
0477f2e77d
commit
9eaa8c94bd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -449,11 +449,11 @@ if (window.ko) {
|
||||
|
||||
function comboboxHighlighter(item) {
|
||||
var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');
|
||||
var result = item.replace('<br/>', "\n");
|
||||
var result = item.replace(new RegExp('<br/>', 'g'), "\n");
|
||||
result = result.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
|
||||
return match ? '<strong>' + match + '</strong>' : query;
|
||||
});
|
||||
result = result.replace("\n", '<br/>');
|
||||
result = result.replace(new RegExp("\n", 'g'), '<br/>');
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user