* Change confirm modal style.

This commit is contained in:
caoyanyi
2023-06-14 19:18:57 +08:00
parent 8ec9a65e2c
commit 954fbbe945
+3 -5
View File
@@ -11,12 +11,10 @@ window.changeStatus = function(branchID, changeStatus)
{
const methodName = changeStatus == 'close' ? 'close' : 'activate';
const confirmMsg = changeStatus == 'close' ? confirmclose : confirmactivate;
if(window.confirm(confirmMsg))
zui.Modal.confirm({message: confirmMsg, icon:'icon-info-sign', iconClass: 'warning-pale rounded-full icon-2x'}).then((res) =>
{
$.ajaxSubmit({
url: $.createLink('branch', methodName, `branchID=${branchID}`)
});
}
if(res) $.ajaxSubmit({url: $.createLink('branch', methodName, `branchID=${branchID}`)});
});
}
/**