mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +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
|
|
@ -3,7 +3,7 @@ import ko from 'ko';
|
|||
|
||||
import { MESSAGES_PER_PAGE, MESSAGES_PER_PAGE_VALUES } from 'Common/Consts';
|
||||
import { Layout, EditorDefaultType, Magics } from 'Common/Enums';
|
||||
import { $html } from 'Common/Globals';
|
||||
import { $htmlCL } from 'Common/Globals';
|
||||
import { pInt } from 'Common/Utils';
|
||||
import * as Events from 'Common/Events';
|
||||
|
||||
|
|
@ -46,9 +46,9 @@ class SettingsUserStore {
|
|||
|
||||
subscribers() {
|
||||
this.layout.subscribe((value) => {
|
||||
$html.toggleClass('rl-no-preview-pane', Layout.NoPreview === value);
|
||||
$html.toggleClass('rl-side-preview-pane', Layout.SidePreview === value);
|
||||
$html.toggleClass('rl-bottom-preview-pane', Layout.BottomPreview === value);
|
||||
$htmlCL.toggle('rl-no-preview-pane', Layout.NoPreview === value);
|
||||
$htmlCL.toggle('rl-side-preview-pane', Layout.SidePreview === value);
|
||||
$htmlCL.toggle('rl-bottom-preview-pane', Layout.BottomPreview === value);
|
||||
Events.pub('layout', [value]);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue