mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:42 +01:00
Fix darkmode for mobile popups running in iframes
This commit is contained in:
parent
4069c9ef17
commit
aff0162f3c
@ -249,6 +249,13 @@
|
|||||||
var $appHeader = jQuery(popupWindow.document).find('#divAppboxHeader');
|
var $appHeader = jQuery(popupWindow.document).find('#divAppboxHeader');
|
||||||
var $et2_container = jQuery(popupWindow.document).find('.et2_container');
|
var $et2_container = jQuery(popupWindow.document).find('.et2_container');
|
||||||
jQuery(popupWindow.document.body).css({'overflow-y':'auto'});
|
jQuery(popupWindow.document.body).css({'overflow-y':'auto'});
|
||||||
|
|
||||||
|
var darkmode = egw.getSessionItem('api', 'darkmode');
|
||||||
|
if (darkmode == '0' || darkmode == '1')
|
||||||
|
{
|
||||||
|
// set darkmode for iframe popup content
|
||||||
|
jQuery(popupWindow.document.body.parentElement).attr('data-darkmode', darkmode == 0?'':'1');
|
||||||
|
}
|
||||||
if ($appHeader.length > 0)
|
if ($appHeader.length > 0)
|
||||||
{
|
{
|
||||||
// Extend the dialog to 100% width
|
// Extend the dialog to 100% width
|
||||||
|
Loading…
Reference in New Issue
Block a user