Fix JS
pull/375/head
Aidaho 8 months ago
parent 715187b075
commit 396d6b85e9

@ -1680,3 +1680,14 @@ function removeData() {
chart.destroy();
}
}
function common_ajax_action_after_success(dialog_id, new_group, ajax_append_id, data) {
toastr.clear();
$("#"+ajax_append_id).append(data);
$( "."+new_group ).addClass( "update", 1000);
$.getScript(awesome);
clearTips();
$( dialog_id ).dialog("close" );
setTimeout(function() {
$( "."+new_group ).removeClass( "update" );
}, 2500 );
}

@ -288,17 +288,6 @@ window.onload = function() {
}
}
}
function common_ajax_action_after_success(dialog_id, new_group, ajax_append_id, data) {
toastr.clear();
$("#"+ajax_append_id).append(data);
$( "."+new_group ).addClass( "update", 1000);
$.getScript(awesome);
clearTips();
$( dialog_id ).dialog("close" );
setTimeout(function() {
$( "."+new_group ).removeClass( "update" );
}, 2500 );
}
function addUser(dialog_id) {
var valid = true;
toastr.clear();

Loading…
Cancel
Save