$ (' #ajax_wait '). Modal ({
Backdrop: ' Static ',
Keyboard:false
});
Backdrop:static, the blank space is not closed.
Keyboard:false, ESC keyboard does not close.
The above code opens the modal box at the same time
Of course, it is also possible to add data-backdrop= "static" directly to the modal frame.
--------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------
To open a modal box manually:
$ ("#ajax_wait"). Modal (' show ');
To manually hide the modal box:
$ ("#ajax_wait"). Modal (' hide ');
To set the modal box vertically centered:
$ (' #ajax_wait '). Modal (). CSS ({
"Margin-top": function () {
return $ (this). Height ()/2;
}
});
BootStrap Modal box Disable white space click Close, Manual display hidden, vertical center