diff --git a/inc/script.js b/inc/script.js index cf20658..23df09f 100644 --- a/inc/script.js +++ b/inc/script.js @@ -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 ); +} diff --git a/inc/users.js b/inc/users.js index 6df1c86..778d84f 100644 --- a/inc/users.js +++ b/inc/users.js @@ -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();