mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Upgraded some old JavaScript to ECMAScript 1.6
Removed some jQuery references Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
This commit is contained in:
parent
a6a337e5ce
commit
0b0747b8dc
19 changed files with 142 additions and 151 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import ko from 'ko';
|
||||
import { $html, bMobileDevice } from 'Common/Globals';
|
||||
import { $htmlCL, bMobileDevice } from 'Common/Globals';
|
||||
import * as Settings from 'Storage/Settings';
|
||||
|
||||
class AbstractAppStore {
|
||||
|
|
@ -12,7 +12,8 @@ class AbstractAppStore {
|
|||
|
||||
this.interfaceAnimation.subscribe((value) => {
|
||||
const anim = bMobileDevice || !value;
|
||||
$html.toggleClass('rl-anim', !anim).toggleClass('no-rl-anim', anim);
|
||||
$htmlCL.toggle('rl-anim', !anim);
|
||||
$htmlCL.toggle('no-rl-anim', anim);
|
||||
});
|
||||
|
||||
this.interfaceAnimation.valueHasMutated();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue