mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 23:08:53 +01:00
only update darkmode pref, if necessary
This commit is contained in:
parent
086d92e957
commit
9ab4c69050
@ -1387,8 +1387,12 @@ window.fw_base = (function(){ "use strict"; return Class.extend(
|
||||
}
|
||||
|
||||
})
|
||||
egw.setSessionItem('api', 'darkmode',state);
|
||||
egw.json('EGroupware\\Api\\Framework\\Ajax::ajax_set_darkmode_flag',[state]).sendRequest();
|
||||
// only update darkmode pref, if necessary
|
||||
if (egw.getSessionItem('api', 'darkmode') !== state)
|
||||
{
|
||||
egw.setSessionItem('api', 'darkmode',state);
|
||||
egw.json('EGroupware\\Api\\Framework\\Ajax::ajax_set_darkmode_flag',[state]).sendRequest();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -1412,4 +1416,4 @@ window.fw_base = (function(){ "use strict"; return Class.extend(
|
||||
gauge.width(this.firstload_animation_gauge+"%");
|
||||
if (_gauge == 100) window.setTimeout(function(){jQuery('#egw_fw_firstload').remove();},1000);
|
||||
}
|
||||
});}).call(window);
|
||||
});}).call(window);
|
Loading…
Reference in New Issue
Block a user