浏览代码

Updated files.

Dante 11 年之前
父节点
当前提交
8c4943f3aa
共有 2 个文件被更改,包括 40 次插入1 次删除
  1. 39 0
      assets/bootstrap-dialog/js/bootstrap-dialog.js
  2. 1 1
      assets/bootstrap-dialog/js/bootstrap-dialog.min.js

+ 39 - 0
assets/bootstrap-dialog/js/bootstrap-dialog.js

@@ -937,6 +937,45 @@
         }).open();
         }).open();
     };
     };
 
 
+    /**
+     * Warning window
+     * 
+     * @param {type} message
+     * @returns the created dialog instance
+     */
+    BootstrapDialog.warning = function(message, callback) {
+        return new BootstrapDialog({
+            type: BootstrapDialog.TYPE_WARNING,
+            message: message
+        }).open();
+    };
+
+    /**
+     * Danger window
+     * 
+     * @param {type} message
+     * @returns the created dialog instance
+     */
+    BootstrapDialog.danger = function(message, callback) {
+        return new BootstrapDialog({
+            type: BootstrapDialog.TYPE_DANGER,
+            message: message
+        }).open();
+    };
+
+    /**
+     * Success window
+     * 
+     * @param {type} message
+     * @returns the created dialog instance
+     */
+    BootstrapDialog.success = function(message, callback) {
+        return new BootstrapDialog({
+            type: BootstrapDialog.TYPE_SUCCESS,
+            message: message
+        }).open();
+    };
+
     return BootstrapDialog;
     return BootstrapDialog;
 
 
 }));
 }));

文件差异内容过多而无法显示
+ 1 - 1
assets/bootstrap-dialog/js/bootstrap-dialog.min.js