浏览代码

add bootstrap to AMD difinition

Dante 10 年之前
父节点
当前提交
bddb368893

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

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

文件差异内容过多而无法显示
+ 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
     // AMD module is defined
     else if (typeof define === "function" && define.amd) {
     else if (typeof define === "function" && define.amd) {
-        define("bootstrap-dialog", ["jquery"], function($) {
+        define("bootstrap-dialog", ["jquery", "bootstrap"], function($) {
             return factory($);
             return factory($);
         });
         });
     } else {
     } else {

文件差异内容过多而无法显示
+ 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
     // AMD module is defined
     else if (typeof define === "function" && define.amd) {
     else if (typeof define === "function" && define.amd) {
-        define("bootstrap-dialog", ["jquery"], function($) {
+        define("bootstrap-dialog", ["jquery", "bootstrap"], function($) {
             return factory($);
             return factory($);
         });
         });
     } else {
     } else {