[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:
Goffin Simon 2015-04-28 15:16:00 +02:00
parent fa18530210
commit ec47493f46
1 changed files with 6 additions and 0 deletions

View File

@ -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({