更换 alert 为 bootstrap 的 modal

This commit is contained in:
virusdefender
2015-08-01 22:23:18 +08:00
parent 26dab5bd91
commit 999d03b8f7
6 changed files with 38 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
define("bs_alert", ["jquery", "bootstrap"], function($){
function bs_alert(content){
$("#modal-text").html(content);
$("#modal").modal();
}
return bs_alert;
});