Browse Source

Fixed a bug that caused by incorrect content generating order.

Dante 12 years ago
parent
commit
2861d309d8

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

@@ -645,14 +645,14 @@ var BootstrapDialog = null;
             });
             this.handleModalEvents();
             this.setRealized(true);
+            this.updateTitle();
+            this.updateMessage();
+            this.updateClosable();
 
             return this;
         },
         open: function() {
             !this.isRealized() && this.realize();
-            this.updateTitle();
-            this.updateMessage();
-            this.updateClosable();
             this.getModal().modal('show');
             this.setOpened(true);
 

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


+ 3 - 3
js/bootstrap-dialog.js

@@ -645,14 +645,14 @@ var BootstrapDialog = null;
             });
             this.handleModalEvents();
             this.setRealized(true);
+            this.updateTitle();
+            this.updateMessage();
+            this.updateClosable();
 
             return this;
         },
         open: function() {
             !this.isRealized() && this.realize();
-            this.updateTitle();
-            this.updateMessage();
-            this.updateClosable();
             this.getModal().modal('show');
             this.setOpened(true);
 

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