Removed some jQuery.ajax() 'timeout: 10000' and 'async: false' properties
This commit is contained in:
parent
04c8348042
commit
11d50f06ba
|
@ -215,7 +215,6 @@ function mainInsertData() {
|
||||||
data: inputs.join ("&"),
|
data: inputs.join ("&"),
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: action="ajax.php",
|
url: action="ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$('#id_agent_module').append ($('<option></option>').attr ('value', 0).text ("--"));
|
$('#id_agent_module').append ($('<option></option>').attr ('value', 0).text ("--"));
|
||||||
|
|
|
@ -539,7 +539,6 @@ function refreshMapView() {
|
||||||
type: "GET",
|
type: "GET",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.correct) {
|
if (data.correct) {
|
||||||
mapConnection = data.content;
|
mapConnection = data.content;
|
||||||
|
@ -795,7 +794,6 @@ function setFieldsRequestAjax(id_conexion) {
|
||||||
type: "GET",
|
type: "GET",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.correct) {
|
if (data.correct) {
|
||||||
$("input[name=map_initial_longitude]").val(data.content.initial_longitude);
|
$("input[name=map_initial_longitude]").val(data.content.initial_longitude);
|
||||||
|
|
|
@ -143,7 +143,6 @@ function setDefault(id_tgis_map) {
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.correct == 0) {
|
if (data.correct == 0) {
|
||||||
alert('<?php echo __('There was error on setup the default map.');?>');
|
alert('<?php echo __('There was error on setup the default map.');?>');
|
||||||
|
|
|
@ -214,8 +214,6 @@ function icon_changed () {
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
async: false,
|
|
||||||
timeout: 10000,
|
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
$('#icon_preview').append ($('<img />').attr ('src', result));
|
$('#icon_preview').append ($('<img />').attr ('src', result));
|
||||||
}
|
}
|
||||||
|
@ -234,7 +232,6 @@ function parent_changed () {
|
||||||
data: inputs.join ("&"),
|
data: inputs.join ("&"),
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
var data_ = data;
|
var data_ = data;
|
||||||
|
@ -253,8 +250,6 @@ function parent_changed () {
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
async: false,
|
|
||||||
timeout: 10000,
|
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
$('#parent_preview').append ($('<img />').attr ('src', result));
|
$('#parent_preview').append ($('<img />').attr ('src', result));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3010,7 +3010,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) . ') {
|
||||||
|
@ -3180,7 +3179,6 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
data: data_params,
|
data: data_params,
|
||||||
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
|
||||||
|
@ -3393,7 +3391,6 @@ function ui_print_agent_autocomplete_input($parameters) {
|
||||||
data: data_params,
|
data: data_params,
|
||||||
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) {
|
||||||
|
|
|
@ -159,7 +159,6 @@ function show_response_dialog(event_id, response_id, response) {
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action=ajax_file,
|
url: action=ajax_file,
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#event_response_window").hide ()
|
$("#event_response_window").hide ()
|
||||||
|
|
|
@ -665,8 +665,6 @@ function load_plugin_macros_fields(row_model_id) {
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action = get_php_value('absolute_homeurl') + "ajax.php",
|
url: action = get_php_value('absolute_homeurl') + "ajax.php",
|
||||||
async: false,
|
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
// Delete all the macro fields
|
// Delete all the macro fields
|
||||||
|
|
|
@ -169,9 +169,7 @@ ui_toggle($html_toggle,
|
||||||
data: parameters,
|
data: parameters,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#module_list_loading").hide();
|
$("#module_list_loading").hide();
|
||||||
|
|
||||||
|
@ -205,9 +203,7 @@ ui_toggle($html_toggle,
|
||||||
data: parameters,
|
data: parameters,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#module_list_loading").hide();
|
$("#module_list_loading").hide();
|
||||||
|
|
||||||
|
@ -244,9 +240,7 @@ ui_toggle($html_toggle,
|
||||||
data: parameters,
|
data: parameters,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#module_list_loading").hide();
|
$("#module_list_loading").hide();
|
||||||
|
|
||||||
|
@ -288,9 +282,7 @@ ui_toggle($html_toggle,
|
||||||
data: parameters,
|
data: parameters,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#module_list_loading").hide();
|
$("#module_list_loading").hide();
|
||||||
|
|
||||||
|
|
|
@ -277,8 +277,6 @@ echo "</div>";
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
async: false,
|
|
||||||
timeout: 10000,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$(".loading_save").hide();
|
$(".loading_save").hide();
|
||||||
if (data.correct) {
|
if (data.correct) {
|
||||||
|
|
|
@ -45,9 +45,7 @@ ui_toggle(
|
||||||
data: parameters,
|
data: parameters,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
timeout: 10000,
|
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#event_list").empty();
|
$("#event_list").empty();
|
||||||
$("#event_list").html(data);
|
$("#event_list").html(data);
|
||||||
|
|
|
@ -1184,8 +1184,6 @@ $(document).ready( function() {
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
async: false,
|
|
||||||
timeout: 10000,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#toggle_arrow").attr('src', data);
|
$("#toggle_arrow").attr('src', data);
|
||||||
}
|
}
|
||||||
|
@ -1201,8 +1199,6 @@ $(document).ready( function() {
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
async: false,
|
|
||||||
timeout: 10000,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#toggle_arrow").attr('src', data);
|
$("#toggle_arrow").attr('src', data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue