优化弹出框,减少等待时间
This commit is contained in:
@@ -143,7 +143,7 @@ var $,form;
|
||||
var data = {'role_name':role_name,'detail':detail,'nodes_data':nodes_data,'server_group_ids':server_group_ids,'task_group_ids':task_group_ids}
|
||||
$.post('{{urlfor "RoleController.AjaxSave"}}', data, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.alert('保存成功了', {icon: 1},function(index){
|
||||
layer.alert('保存成功了', {icon: 1,shade:0.3,time:1000},function(index){
|
||||
window.history.go(-1)
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -146,7 +146,7 @@ var $,form;
|
||||
var data = {'role_name':role_name,'id':id,'detail':detail,'nodes_data':nodes_data,'server_group_ids':server_group_ids,'task_group_ids':task_group_ids}
|
||||
$.post('{{urlfor "RoleController.AjaxSave"}}', data, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.alert('保存成功了', {icon: 1},function(index){
|
||||
layer.alert('保存成功了', {icon: 1,shade:0.3,time:1000},function(index){
|
||||
layer.close(index);
|
||||
window.location.href="/role/list"
|
||||
});
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
var jsData = {'id':data.id}
|
||||
$.post('{{urlfor "RoleController.AjaxDel"}}', jsData, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.alert('删除成功了', {icon: 1},function(index){
|
||||
layer.alert('删除成功了', {icon: 1,shade:0.3,time:1000},function(index){
|
||||
layer.close(index);
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user