Browse Source

Fixed a bug of close button

Dante 12 years ago
parent
commit
647d3afe8c
2 changed files with 2 additions and 6 deletions
  1. 1 3
      examples/assets/bootstrap-dialog/js/bootstrap-dialog.js
  2. 1 3
      js/bootstrap-dialog.js

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

@@ -275,9 +275,7 @@ var BootstrapDialog = null;
             $container.append(this.createTitleContent());
 
             // Close button
-            if (this.isClosable()) {
-                $container.append(this.createCloseButton());
-            }
+            $container.append(this.createCloseButton());
 
             return $container;
         },

+ 1 - 3
js/bootstrap-dialog.js

@@ -275,9 +275,7 @@ var BootstrapDialog = null;
             $container.append(this.createTitleContent());
 
             // Close button
-            if (this.isClosable()) {
-                $container.append(this.createCloseButton());
-            }
+            $container.append(this.createCloseButton());
 
             return $container;
         },