Skip to content

Commit

Permalink
message box add callback
Browse files Browse the repository at this point in the history
  • Loading branch information
bigxxs authored Apr 15, 2019
1 parent 0f525dc commit eff218b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kmui.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@
}
__dialog.show();
},
messageBox: function (content) {
messageBox: function (content, callback) {
kmui.dialog({
title: "提醒",
content: content,
buttons: [
{
text: "确定",
click: function () {
if(callbakc){
callback();
}
return true;
}
}
Expand Down

0 comments on commit eff218b

Please sign in to comment.