From 3e98a1c455bb4df6f247a3f5943a78139f28fbcc Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 8 Sep 2015 09:23:50 +0200 Subject: [PATCH] Fixed problems with async with user using proxys. Tiquet: #2630 --- pandora_console/include/functions_ui.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 5d31750156..6782a2adc4 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2873,7 +2873,7 @@ function ui_print_agent_autocomplete_input($parameters) { var inputs = []; inputs.push ("agent_name=" + agent_name); - inputs.push ("filter=delete_pending = 0"); + inputs.push ("delete_pending=0"); inputs.push ("get_agent_modules_json=1"); inputs.push ("page=operation/agentes/ver_agente"); @@ -2904,7 +2904,6 @@ function ui_print_agent_autocomplete_input($parameters) { data: inputs.join ("&"), type: "POST", url: action="' . $javascript_ajax_page . '", - timeout: 10000, dataType: "json", success: function (data) { if (' . ((int)$add_none_module) . ') { @@ -3072,10 +3071,8 @@ function ui_print_agent_autocomplete_input($parameters) { jQuery.ajax ({ data: data_params, - async: false, type: "POST", url: action="' . $javascript_ajax_page . '", - timeout: 10000, dataType: "json", success: function (data) { cache_' . $input_name . '[term] = data; //Save the cache @@ -3286,10 +3283,8 @@ function ui_print_agent_autocomplete_input($parameters) { jQuery.ajax ({ data: data_params, - async: false, type: "POST", url: action="' . $javascript_ajax_page . '", - timeout: 10000, dataType: "json", success: function (data) { if (data.length == 0) {