mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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:
parent
a70d751c38
commit
08dd1832ac
@ -3151,7 +3151,6 @@ 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,
|
timeout: 10000,
|
||||||
@ -3365,15 +3364,12 @@ 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,
|
timeout: 10000,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
alert("' . __('Does not exist agent with this name.') . '");
|
|
||||||
|
|
||||||
//Set icon
|
//Set icon
|
||||||
$("#' . $input_id . '")
|
$("#' . $input_id . '")
|
||||||
.css("background",
|
.css("background",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user