mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 15:08:28 +03:00
Code refactoring
This commit is contained in:
parent
759327527f
commit
fa795947cf
29 changed files with 478 additions and 890 deletions
|
|
@ -9,7 +9,6 @@
|
|||
$ = require('$'),
|
||||
ko = require('ko'),
|
||||
key = require('key'),
|
||||
$html = require('$html'),
|
||||
|
||||
Utils = require('Utils'),
|
||||
Enums = require('Enums'),
|
||||
|
|
@ -235,7 +234,7 @@
|
|||
{
|
||||
var
|
||||
sFromFolderFullNameRaw = oUi.helper.data('rl-folder'),
|
||||
bCopy = $html.hasClass('rl-ctrl-key-pressed'),
|
||||
bCopy = Globals.$html.hasClass('rl-ctrl-key-pressed'),
|
||||
aUids = oUi.helper.data('rl-uids')
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
$ = require('$'),
|
||||
ko = require('ko'),
|
||||
key = require('key'),
|
||||
$html = require('$html'),
|
||||
|
||||
Consts = require('Consts'),
|
||||
Enums = require('Enums'),
|
||||
|
|
@ -219,11 +218,11 @@
|
|||
this.fullScreenMode.subscribe(function (bValue) {
|
||||
if (bValue)
|
||||
{
|
||||
$html.addClass('rl-message-fullscreen');
|
||||
Globals.$html.addClass('rl-message-fullscreen');
|
||||
}
|
||||
else
|
||||
{
|
||||
$html.removeClass('rl-message-fullscreen');
|
||||
Globals.$html.removeClass('rl-message-fullscreen');
|
||||
}
|
||||
|
||||
Utils.windowResize();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
_ = require('_'),
|
||||
ko = require('ko'),
|
||||
moment = require('moment'),
|
||||
$win = require('$win'),
|
||||
JSON = require('JSON'),
|
||||
Jua = require('Jua'),
|
||||
|
||||
|
|
@ -1055,7 +1054,7 @@
|
|||
return false;
|
||||
});
|
||||
|
||||
$win.on('resize', function () {
|
||||
Globals.$win.on('resize', function () {
|
||||
self.triggerForResize();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue