Skip to content

Commit ff4f2ec

Browse files
committed
Merge pull request #201 from afro1114/master
Allow to initialize the buttons in disabled state
2 parents 29bf70d + f898eaa commit ff4f2ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/js/bootstrap-dialog.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,11 @@
855855
// Dynamically add extra functions to $button
856856
this.enhanceButton($button);
857857

858+
//Initialize enabled or not
859+
if(typeof button.enabled !== 'undefined') {
860+
$button.toggleEnable(button.enabled);
861+
}
862+
858863
return $button;
859864
},
860865
/**

0 commit comments

Comments
 (0)