1. Scene
After clicking a button and deleting a record, it will prompt that the deletion was successful, and then refresh the dialog.
2.Solution
1) Add the callback attribute to the delete button and add the callback function.
Add the following extension code to dwz.dialog.js :
reloadDialog:function(dialogId){
dialog = $("body").data(dialogId);
if(dialog){
$.pdialog.reload(dialog.data("url"),{dialogId:dialogId});
}
},
3) Use
function dialogAjax(json){
$.pdialog.reloadDialog("triggerList");
}