Revert functions_ui

This commit is contained in:
José González 2021-05-07 11:11:36 +00:00
parent c7bb5ad430
commit 214535bdaa
1 changed files with 17 additions and 16 deletions

View File

@ -5194,7 +5194,7 @@ function ui_print_agent_autocomplete_input($parameters)
} }
//Set loading //Set loading
$("#'.$input_id.'") $("#'.$input_id.'")
.css("background","url(\"'.$spinner_image.'\") right center no-repeat"); .css("background","url(\"'.$spinner_image.'\") right center no-repeat");
//Function to call when the source //Function to call when the source
@ -5209,7 +5209,7 @@ function ui_print_agent_autocomplete_input($parameters)
response(cache_'.$input_name.'[groupId][term]); response(cache_'.$input_name.'[groupId][term]);
//Set icon //Set icon
$("#'.$input_id.'") $("#'.$input_id.'")
.css("background","url(\"'.$icon_image.'\") right center no-repeat '.$icon_image.'"); .css("background","url(\"'.$icon_image.'\") right center no-repeat '.$icon_image.'");
return; return;
} }
@ -5228,7 +5228,7 @@ function ui_print_agent_autocomplete_input($parameters)
response(cache_'.$input_name.'[groupId][oldterm]); response(cache_'.$input_name.'[groupId][oldterm]);
found = true; found = true;
return; return;
} }
}); });
@ -5237,7 +5237,6 @@ function ui_print_agent_autocomplete_input($parameters)
break; break;
} }
} }
*/ */
} }
//================================================== //==================================================
@ -5245,10 +5244,11 @@ function ui_print_agent_autocomplete_input($parameters)
if (found) { if (found) {
//Set icon //Set icon
$("#'.$input_id.'") $("#'.$input_id.'")
.css("background","url(\"'.$icon_image.'\") right center no-repeat"); .css("background","url(\"'.$icon_image.'\") right center no-repeat");
select_item_click = 0; select_item_click = 0;
return; return;
} }
@ -5259,19 +5259,20 @@ function ui_print_agent_autocomplete_input($parameters)
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
cache_'.$input_name.'[groupId][term] = data; //Save the cache cache_'.$input_name.'[groupId][term] = data; //Save the cache
response(data); response(data);
//Set icon //Set icon
setInputBackground("'.$input_id.'", "'.$icon_image.'"); $("#'.$input_id.'")
select_item_click = 0; .css("background",
"url(\"'.$icon_image.'\") right center no-repeat");
select_item_click = 0;
return; return;
} }
}); });
$("#'.$input_id.'")
.css("background",
"url(\"'.$icon_image.'\") right center no-repeat");
return; return;
}, },
//---END source----------------------------------------- //---END source-----------------------------------------