ソースを参照

Merge pull request #201 from afro1114/master

Allow to initialize the buttons in disabled state
Dante 10 年 前
コミット
ff4f2ecb3d
1 ファイル変更5 行追加0 行削除
  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
             this.enhanceButton($button);
 
+            //Initialize enabled or not
+            if(typeof button.enabled !== 'undefined') {
+              $button.toggleEnable(button.enabled);
+            }
+
             return $button;
         },
         /**