mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix darkmode for mobile popups running in iframes
This commit is contained in:
parent
50a28e4656
commit
cc77e68341
@ -249,6 +249,13 @@
|
||||
var $appHeader = jQuery(popupWindow.document).find('#divAppboxHeader');
|
||||
var $et2_container = jQuery(popupWindow.document).find('.et2_container');
|
||||
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)
|
||||
{
|
||||
// Extend the dialog to 100% width
|
||||
|
Loading…
Reference in New Issue
Block a user