mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Qual: flush cache if field is empty
This commit is contained in:
@@ -91,6 +91,7 @@ function ajax_autocompleter($selected='',$htmlname,$url,$option='')
|
||||
var cache = {};
|
||||
jQuery("input#search_'.$htmlname.'").autocomplete({
|
||||
source: function( request, response ) {
|
||||
if (this.length == 0) { jQuery(this).flushCache(); }
|
||||
if (cache.term == request.term && cache.content) {
|
||||
response(cache.content);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user