mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Code refactoring
This commit is contained in:
parent
759327527f
commit
fa795947cf
29 changed files with 478 additions and 890 deletions
|
|
@ -10,7 +10,6 @@
|
|||
ko = require('ko'),
|
||||
hasher = require('hasher'),
|
||||
crossroads = require('crossroads'),
|
||||
$html = require('$html'),
|
||||
|
||||
Globals = require('Globals'),
|
||||
Plugins = require('Plugins'),
|
||||
|
|
@ -415,7 +414,7 @@
|
|||
});
|
||||
|
||||
_.delay(function () {
|
||||
$html.removeClass('rl-started-trigger').addClass('rl-started');
|
||||
Globals.$html.removeClass('rl-started-trigger').addClass('rl-started');
|
||||
}, 50);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
var
|
||||
ko = require('ko'),
|
||||
$win = require('$win'),
|
||||
|
||||
Enums = require('Enums'),
|
||||
Globals = require('Globals'),
|
||||
|
|
@ -88,7 +87,7 @@
|
|||
{
|
||||
var self = this;
|
||||
|
||||
$win.on('keydown', function (oEvent) {
|
||||
Globals.$win.on('keydown', function (oEvent) {
|
||||
if (oEvent && self.modalVisibility && self.modalVisibility())
|
||||
{
|
||||
if (!this.bDisabeCloseOnEsc && Enums.EventKeyCode.Esc === oEvent.keyCode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue