File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -810,13 +810,23 @@ function HeaderDialog(dialog, onSave) {
810
810
// Public variables
811
811
812
812
this . show = function ( sysConfig ) {
813
- dialog . modal ( 'toggle' ) ;
814
- if ( dialog . data ( 'bs.modal' ) . isShown ) {
813
+
814
+ // Workaround to pressing the shortcut key multiple times
815
+ // The modal-backdrop isn't removed
816
+ // Remove it manually
817
+ dialog . one ( 'hidden.bs.modal' , function ( ) {
818
+ $ ( '.modal-backdrop' ) . remove ( ) ;
819
+ } ) ;
820
+
821
+ dialog . one ( 'show.bs.modal' , function ( ) {
815
822
renderSysConfig ( sysConfig ) ;
816
823
// Disable changing input and dropdowns
817
824
$ ( '#dlgHeaderDialog input' ) . prop ( 'disabled' , 'disabled' ) ;
818
825
$ ( '#dlgHeaderDialog select' ) . prop ( 'disabled' , 'disabled' ) ;
819
- }
826
+ } ) ;
827
+
828
+ dialog . modal ( 'toggle' ) ;
829
+
820
830
}
821
831
822
832
// Buttons
You can’t perform that action at this time.
0 commit comments