Move cookie consent always on top.
This commit is contained in:
parent
f63c3d074a
commit
9c803562f3
@ -15,5 +15,6 @@ OV.ShowCookieDialog = function (onAccept)
|
||||
OV.AddDiv (contentDiv, 'ov_dialog_section', text);
|
||||
dialog.SetCloseable (false);
|
||||
dialog.Show ();
|
||||
dialog.MoveToTop ();
|
||||
return dialog;
|
||||
};
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user