chg: [js:bootstrap-helper] Added support of modal size

develop-unstable
Sami Mokaddem 2022-12-02 09:46:05 +01:00
parent 97716e3f6a
commit 48a3c242aa
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -629,6 +629,9 @@ class ModalFactory {
}
} else {
$modalDialog = $('<div class="modal-dialog"/>')
if (this.options.size !== false) {
$modalDialog.addClass(`modal-${this.options.size}`)
}
const $modalContent = $('<div class="modal-content"/>')
if (this.options.title !== false || this.options.titleHtml !== false) {
const $modalHeader = $('<div class="modal-header"/>')