mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 00:14:57 +02:00
Some fixes for darkmode:
- Fix darkmode not switched in popups - Fix a quick white page shown before switching to darkmode when it's set to 'auto'
This commit is contained in:
@ -177,12 +177,15 @@ var AppJS = (function(){ "use strict"; return Class.extend(
|
||||
}
|
||||
this.et2 = et2.widgetContainer;
|
||||
this._fix_iFrameScrolling();
|
||||
if (this.egw && this.egw.is_popup()) this._set_Window_title();
|
||||
if (this.egw && this.egw.is_popup())
|
||||
{
|
||||
this._set_Window_title();
|
||||
// apply theme mode
|
||||
jQuery('html').attr('data-darkmode', egw.getSessionItem('api', 'darkmode') == '0'?'0':'1');
|
||||
}
|
||||
|
||||
// Highlights the favorite based on initial list state
|
||||
this.highlight_favorite();
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user