Skip to content
Snippets Groups Projects
Commit 1aead232 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Use a better way to bold search criteria (no use of javascript regex, but...

Fix: Use a better way to bold search criteria (no use of javascript regex, but use php regex). Usage of * was making javascript crazy.
Fix: When field is manually cleaned, we must also clean hidden fields.
New: Can define number of char before showing first answer
parent 921aac79
Branches
Tags
No related merge requests found
......@@ -121,6 +121,7 @@ function ajax_autocompleter($selected='',$htmlname,$url,$option='')
jQuery("#'.$htmlname.'").val(item.key);
}
var label = item.label.toString();
//label = label.replace(new RegExp("("+request.term+")","i"),"<strong>$1</strong>");
return { label: label, value: item.value, id: item.key}
}));
}, "json");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment