Found and removed the async ajax calls (finally!). That was a very bad practice.

Also removed the alert, cause after closing it, the blur event was executed again, with another alert that repeated the process.
This commit is contained in:
Alejandro Gallardo Escobar 2015-04-16 13:29:23 +02:00
parent a70d751c38
commit 08dd1832ac
1 changed files with 0 additions and 4 deletions

View File

@ -3151,7 +3151,6 @@ function ui_print_agent_autocomplete_input($parameters) {
jQuery.ajax ({
data: data_params,
async: false,
type: "POST",
url: action="' . $javascript_ajax_page . '",
timeout: 10000,
@ -3365,15 +3364,12 @@ 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) {
alert("' . __('Does not exist agent with this name.') . '");
//Set icon
$("#' . $input_id . '")
.css("background",