Move cookie consent always on top.

This commit is contained in:
kovacsv 2021-12-09 12:51:42 +01:00
parent f63c3d074a
commit 9c803562f3
2 changed files with 15 additions and 0 deletions

View File

@ -15,5 +15,6 @@ OV.ShowCookieDialog = function (onAccept)
OV.AddDiv (contentDiv, 'ov_dialog_section', text);
dialog.SetCloseable (false);
dialog.Show ();
dialog.MoveToTop ();
return dialog;
};

View File

@ -72,6 +72,15 @@ OV.Modal = class
this.isOpen = false;
}
MoveToTop ()
{
if (!this.isOpen) {
return;
}
this.modalDiv.style.zIndex = '1000';
this.overlayDiv.style.zIndex = '1000';
}
IsOpen ()
{
return this.isOpen;
@ -129,6 +138,11 @@ OV.Dialog = class
{
this.modal.Close ();
}
MoveToTop ()
{
this.modal.MoveToTop ();
}
};
OV.ProgressDialog = class extends OV.Dialog