更换 alert 为 bootstrap 的 modal
This commit is contained in:
7
static/src/js/utils/bs_alert.js
Normal file
7
static/src/js/utils/bs_alert.js
Normal file
@@ -0,0 +1,7 @@
|
||||
define("bs_alert", ["jquery", "bootstrap"], function($){
|
||||
function bs_alert(content){
|
||||
$("#modal-text").html(content);
|
||||
$("#modal").modal();
|
||||
}
|
||||
return bs_alert;
|
||||
});
|
||||
Reference in New Issue
Block a user