浏览代码

Updated examples
Fixed a bug: Dialog is shown even open() method was not called

Dante 12 年之前
父节点
当前提交
7d287f8caf
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      examples/assets/bootstrap-dialog/js/bootstrap-dialog.js
  2. 2 1
      js/bootstrap-dialog.js

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

@@ -478,7 +478,8 @@ var BootstrapDialog = null;
             this.getModalFooter().append(this.createFooterContent());
             this.getModal().modal({
                 backdrop: 'static',
-                keyboard: false
+                keyboard: false,
+                show: false
             });
             this.handleModalEvents();
             this.setRealized(true);

+ 2 - 1
js/bootstrap-dialog.js

@@ -478,7 +478,8 @@ var BootstrapDialog = null;
             this.getModalFooter().append(this.createFooterContent());
             this.getModal().modal({
                 backdrop: 'static',
-                keyboard: false
+                keyboard: false,
+                show: false
             });
             this.handleModalEvents();
             this.setRealized(true);