Fixed problems with async with user using proxys. Tiquet: #2630
This commit is contained in:
parent
ce3b59151f
commit
3e98a1c455
|
@ -2873,7 +2873,7 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
|
|
||||||
var inputs = [];
|
var inputs = [];
|
||||||
inputs.push ("agent_name=" + agent_name);
|
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 ("get_agent_modules_json=1");
|
||||||
inputs.push ("page=operation/agentes/ver_agente");
|
inputs.push ("page=operation/agentes/ver_agente");
|
||||||
|
|
||||||
|
@ -2904,7 +2904,6 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
data: inputs.join ("&"),
|
data: inputs.join ("&"),
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: action="' . $javascript_ajax_page . '",
|
url: action="' . $javascript_ajax_page . '",
|
||||||
timeout: 10000,
|
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (' . ((int)$add_none_module) . ') {
|
if (' . ((int)$add_none_module) . ') {
|
||||||
|
@ -3072,10 +3071,8 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
|
|
||||||
jQuery.ajax ({
|
jQuery.ajax ({
|
||||||
data: data_params,
|
data: data_params,
|
||||||
async: false,
|
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: action="' . $javascript_ajax_page . '",
|
url: action="' . $javascript_ajax_page . '",
|
||||||
timeout: 10000,
|
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
cache_' . $input_name . '[term] = data; //Save the cache
|
cache_' . $input_name . '[term] = data; //Save the cache
|
||||||
|
@ -3286,10 +3283,8 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
|
|
||||||
jQuery.ajax ({
|
jQuery.ajax ({
|
||||||
data: data_params,
|
data: data_params,
|
||||||
async: false,
|
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: action="' . $javascript_ajax_page . '",
|
url: action="' . $javascript_ajax_page . '",
|
||||||
timeout: 10000,
|
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
|
|
Loading…
Reference in New Issue