partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 89d4a35d23a8b4bd44df22129e9a0835bdec1aa1
parent 197cf8bc9282fcc08cf470cb9177d267ec3407be
Author: Felicia Hummel <felicia@partkeepr.com>
Date:   Thu, 19 Jan 2017 22:38:42 +0100

Fix CSS theme switch glitch

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js b/src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js @@ -114,10 +114,6 @@ Ext.application({ this.doSystemStatusCheck(); - if (preferredTheme !== null && preferredTheme !== window.theme) { - this.switchTheme(preferredTheme); - } - this.unacknowledgedNoticesTask = Ext.TaskManager.start({ run: this.doUnacknowledgedNoticesCheck, scope: this, @@ -133,6 +129,10 @@ Ext.application({ this.getStatusbar().setConnected(); + if (preferredTheme !== null && preferredTheme !== window.theme) { + this.switchTheme(preferredTheme); + } + }, onLogout: function () {