Removed some jQuery.ajax() 'timeout: 10000' and 'async: false' properties

This commit is contained in:
Alejandro Gallardo Escobar 2015-06-11 12:08:14 +02:00
parent 04c8348042
commit 11d50f06ba
11 changed files with 0 additions and 31 deletions

View File

@ -215,7 +215,6 @@ function mainInsertData() {
data: inputs.join ("&"),
type: 'GET',
url: action="ajax.php",
timeout: 10000,
dataType: 'json',
success: function (data) {
$('#id_agent_module').append ($('<option></option>').attr ('value', 0).text ("--"));

View File

@ -539,7 +539,6 @@ function refreshMapView() {
type: "GET",
dataType: 'json',
url: "ajax.php",
timeout: 10000,
success: function (data) {
if (data.correct) {
mapConnection = data.content;
@ -795,7 +794,6 @@ function setFieldsRequestAjax(id_conexion) {
type: "GET",
dataType: 'json',
url: "ajax.php",
timeout: 10000,
success: function (data) {
if (data.correct) {
$("input[name=map_initial_longitude]").val(data.content.initial_longitude);

View File

@ -143,7 +143,6 @@ function setDefault(id_tgis_map) {
type: "POST",
dataType: 'json',
url: "ajax.php",
timeout: 10000,
success: function (data) {
if (data.correct == 0) {
alert('<?php echo __('There was error on setup the default map.');?>');

View File

@ -214,8 +214,6 @@ function icon_changed () {
data: params.join ("&"),
type: 'POST',
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
async: false,
timeout: 10000,
success: function (result) {
$('#icon_preview').append ($('<img />').attr ('src', result));
}
@ -234,7 +232,6 @@ function parent_changed () {
data: inputs.join ("&"),
type: 'GET',
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
timeout: 10000,
dataType: 'json',
success: function (data) {
var data_ = data;
@ -253,8 +250,6 @@ function parent_changed () {
data: params.join ("&"),
type: 'POST',
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
async: false,
timeout: 10000,
success: function (result) {
$('#parent_preview').append ($('<img />').attr ('src', result));
}

View File

@ -3010,7 +3010,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) . ') {
@ -3180,7 +3179,6 @@ function ui_print_agent_autocomplete_input($parameters) {
data: data_params,
type: "POST",
url: action="' . $javascript_ajax_page . '",
timeout: 10000,
dataType: "json",
success: function (data) {
cache_' . $input_name . '[term] = data; //Save the cache
@ -3393,7 +3391,6 @@ function ui_print_agent_autocomplete_input($parameters) {
data: data_params,
type: "POST",
url: action="' . $javascript_ajax_page . '",
timeout: 10000,
dataType: "json",
success: function (data) {
if (data.length == 0) {

View File

@ -159,7 +159,6 @@ function show_response_dialog(event_id, response_id, response) {
data: params.join ("&"),
type: 'POST',
url: action=ajax_file,
timeout: 10000,
dataType: 'html',
success: function (data) {
$("#event_response_window").hide ()

View File

@ -665,8 +665,6 @@ function load_plugin_macros_fields(row_model_id) {
data: params.join ("&"),
type: 'POST',
url: action = get_php_value('absolute_homeurl') + "ajax.php",
async: false,
timeout: 10000,
dataType: 'json',
success: function (data) {
// Delete all the macro fields

View File

@ -169,9 +169,7 @@ ui_toggle($html_toggle,
data: parameters,
type: 'POST',
url: "ajax.php",
timeout: 10000,
dataType: 'html',
async: false,
success: function (data) {
$("#module_list_loading").hide();
@ -205,9 +203,7 @@ ui_toggle($html_toggle,
data: parameters,
type: 'POST',
url: "ajax.php",
timeout: 10000,
dataType: 'html',
async: false,
success: function (data) {
$("#module_list_loading").hide();
@ -244,9 +240,7 @@ ui_toggle($html_toggle,
data: parameters,
type: 'POST',
url: "ajax.php",
timeout: 10000,
dataType: 'html',
async: false,
success: function (data) {
$("#module_list_loading").hide();
@ -288,9 +282,7 @@ ui_toggle($html_toggle,
data: parameters,
type: 'POST',
url: "ajax.php",
timeout: 10000,
dataType: 'html',
async: false,
success: function (data) {
$("#module_list_loading").hide();

View File

@ -277,8 +277,6 @@ echo "</div>";
dataType: "json",
type: "POST",
url: "ajax.php",
async: false,
timeout: 10000,
success: function (data) {
$(".loading_save").hide();
if (data.correct) {

View File

@ -45,9 +45,7 @@ ui_toggle(
data: parameters,
type: 'POST',
url: "ajax.php",
timeout: 10000,
dataType: 'html',
async: false,
success: function (data) {
$("#event_list").empty();
$("#event_list").html(data);

View File

@ -1184,8 +1184,6 @@ $(document).ready( function() {
data: params.join ("&"),
type: 'POST',
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
async: false,
timeout: 10000,
success: function (data) {
$("#toggle_arrow").attr('src', data);
}
@ -1201,8 +1199,6 @@ $(document).ready( function() {
data: params.join ("&"),
type: 'POST',
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
async: false,
timeout: 10000,
success: function (data) {
$("#toggle_arrow").attr('src', data);
}