From 214535bdaa46843b6605045e9549716bb70bd6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= <79-jose.gonzalez@users.noreply.brutus.artica.es> Date: Fri, 7 May 2021 11:11:36 +0000 Subject: [PATCH] Revert functions_ui --- pandora_console/include/functions_ui.php | 33 ++++++++++++------------ 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 1b9ecd7483..18aa21f1bc 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -5194,7 +5194,7 @@ function ui_print_agent_autocomplete_input($parameters) } //Set loading - $("#'.$input_id.'") + $("#'.$input_id.'") .css("background","url(\"'.$spinner_image.'\") right center no-repeat"); //Function to call when the source @@ -5209,7 +5209,7 @@ function ui_print_agent_autocomplete_input($parameters) response(cache_'.$input_name.'[groupId][term]); //Set icon - $("#'.$input_id.'") + $("#'.$input_id.'") .css("background","url(\"'.$icon_image.'\") right center no-repeat '.$icon_image.'"); return; } @@ -5228,7 +5228,7 @@ function ui_print_agent_autocomplete_input($parameters) response(cache_'.$input_name.'[groupId][oldterm]); found = true; - + return; } }); @@ -5237,7 +5237,6 @@ function ui_print_agent_autocomplete_input($parameters) break; } } - */ } //================================================== @@ -5245,10 +5244,11 @@ function ui_print_agent_autocomplete_input($parameters) if (found) { //Set icon - $("#'.$input_id.'") - .css("background","url(\"'.$icon_image.'\") right center no-repeat"); - + $("#'.$input_id.'") + .css("background","url(\"'.$icon_image.'\") right center no-repeat"); + select_item_click = 0; + return; } @@ -5259,19 +5259,20 @@ function ui_print_agent_autocomplete_input($parameters) dataType: "json", success: function (data) { cache_'.$input_name.'[groupId][term] = data; //Save the cache + response(data); - - //Set icon - setInputBackground("'.$input_id.'", "'.$icon_image.'"); - select_item_click = 0; + + //Set icon + $("#'.$input_id.'") + .css("background", + "url(\"'.$icon_image.'\") right center no-repeat"); + + select_item_click = 0; + return; } }); - - $("#'.$input_id.'") - .css("background", - "url(\"'.$icon_image.'\") right center no-repeat"); - + return; }, //---END source-----------------------------------------