mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +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(
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
// only update darkmode pref, if necessary
|
||||||
|
if (egw.getSessionItem('api', 'darkmode') !== state)
|
||||||
|
{
|
||||||
egw.setSessionItem('api', 'darkmode',state);
|
egw.setSessionItem('api', 'darkmode',state);
|
||||||
egw.json('EGroupware\\Api\\Framework\\Ajax::ajax_set_darkmode_flag',[state]).sendRequest();
|
egw.json('EGroupware\\Api\\Framework\\Ajax::ajax_set_darkmode_flag',[state]).sendRequest();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user