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

@ -5237,7 +5237,6 @@ function ui_print_agent_autocomplete_input($parameters)
break; break;
} }
} }
*/ */
} }
//================================================== //==================================================
@ -5249,6 +5248,7 @@ function ui_print_agent_autocomplete_input($parameters)
.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.'");
select_item_click = 0;
return;
}
});
$("#'.$input_id.'") $("#'.$input_id.'")
.css("background", .css("background",
"url(\"'.$icon_image.'\") right center no-repeat"); "url(\"'.$icon_image.'\") right center no-repeat");
select_item_click = 0;
return;
}
});
return; return;
}, },
//---END source----------------------------------------- //---END source-----------------------------------------