Browse Source

Updated files.

Dante 11 years ago
parent
commit
8c4943f3aa

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

@@ -937,6 +937,45 @@
         }).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;
 
 }));

File diff suppressed because it is too large
+ 1 - 1
assets/bootstrap-dialog/js/bootstrap-dialog.min.js