fix for modal appearing off-screen

This commit is contained in:
Frances Botsford
2014-05-20 14:13:51 -04:00
parent 6c7ca7ae89
commit f2d8894118
2 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,10 @@ define(["domReady", "jquery", "jquery.ui", "underscore", "gettext", "js/views/fe
};
var closeModalNew = function () {
var closeModalNew = function (e) {
if (e) {
e.preventDefault();
};
$('body').removeClass('modal-window-is-shown');
$('.edit-section-publish-settings').removeClass('is-shown');
};

View File

@@ -517,7 +517,7 @@
visibility: hidden;
pointer-events: none;
display: none;
position: absolute;
position: fixed;
top: 0;
overflow: scroll;
background: $black-t2;