PHRAS- 3626 fix z-index

This commit is contained in:
aynsix
2022-01-11 18:36:58 +03:00
parent 30f44e61c9
commit 279f3b9d73
18 changed files with 40 additions and 24 deletions

View File

@@ -103,6 +103,7 @@ const notifyLayout = (services) => {
$notificationDialog.dialog('close');
};
let zIndexOverlay = $('.ui-widget-overlay').css("z-index");
// open the dlg (even if it is already opened when "load more")
//
$notificationDialog
@@ -116,11 +117,16 @@ const notifyLayout = (services) => {
modal: true,
width: 500,
height: 400,
dialogClass: "dialog-notification-box",
overlay: {
backgroundColor: '#000',
opacity: 0.7
},
open: function () {
$('.ui-widget-overlay').css("z-index", $(".dialog-notification-box").css("z-index"));
},
close: function (event, ui) {
$('.ui-widget-overlay').css("z-index", zIndexOverlay);
// destroy so it will be "fresh" on next open (scrollbar on top)
$notificationDialog.dialog('destroy').remove();
}