Browse Source

Merge pull request #201 from afro1114/master

Allow to initialize the buttons in disabled state
Dante 10 years ago
parent
commit
ff4f2ecb3d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/js/bootstrap-dialog.js

+ 5 - 0
src/js/bootstrap-dialog.js

@@ -855,6 +855,11 @@
             // Dynamically add extra functions to $button
             // Dynamically add extra functions to $button
             this.enhanceButton($button);
             this.enhanceButton($button);
 
 
+            //Initialize enabled or not
+            if(typeof button.enabled !== 'undefined') {
+              $button.toggleEnable(button.enabled);
+            }
+
             return $button;
             return $button;
         },
         },
         /**
         /**