Browse Source

add bootstrap to AMD difinition

Dante 10 years ago
parent
commit
bddb368893

+ 1 - 1
dist/js/bootstrap-dialog.js

@@ -21,7 +21,7 @@
     }
     // AMD module is defined
     else if (typeof define === "function" && define.amd) {
-        define("bootstrap-dialog", ["jquery"], function($) {
+        define("bootstrap-dialog", ["jquery", "bootstrap"], function($) {
             return factory($);
         });
     } else {

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


+ 1 - 1
examples/assets/bootstrap-dialog/js/bootstrap-dialog.js

@@ -21,7 +21,7 @@
     }
     // AMD module is defined
     else if (typeof define === "function" && define.amd) {
-        define("bootstrap-dialog", ["jquery"], function($) {
+        define("bootstrap-dialog", ["jquery", "bootstrap"], function($) {
             return factory($);
         });
     } else {

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


+ 1 - 1
src/js/bootstrap-dialog.js

@@ -21,7 +21,7 @@
     }
     // AMD module is defined
     else if (typeof define === "function" && define.amd) {
-        define("bootstrap-dialog", ["jquery"], function($) {
+        define("bootstrap-dialog", ["jquery", "bootstrap"], function($) {
             return factory($);
         });
     } else {