[FIX] website: edit menu
when closing a modal, the class 'modal-open' was removed from the
'body' tag and all the existing modals became not scrollable.
The class 'modal-open' must be kept in the 'body' tag if there is
still a visible modal in the dom.
Inspired from commit: dee000be14
opw:633801
This commit is contained in:
parent
fa18530210
commit
ec47493f46
|
@ -927,6 +927,12 @@
|
|||
close: function () {
|
||||
this.$el.modal('hide');
|
||||
},
|
||||
destroy: function () {
|
||||
this.$el.modal('hide').remove();
|
||||
if($(".modal.in").length>0){
|
||||
$('body').addClass('modal-open');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
website.editor.LinkDialog = website.editor.Dialog.extend({
|
||||
|
|
Loading…
Reference in New Issue