Add mobile version (beta)

This commit is contained in:
RainLoop Team 2016-05-01 04:07:10 +03:00
parent 1391648e1b
commit b0ffd84ac6
76 changed files with 2945 additions and 845 deletions

View file

@ -12,6 +12,7 @@
Links = require('Common/Links'),
Cache = require('Common/Cache'),
Settings = require('Storage/Settings'),
kn = require('Knoin/Knoin'),
AbstractView = require('Knoin/AbstractView')
@ -29,6 +30,8 @@
this.leftPanelDisabled = Globals.leftPanelDisabled;
this.mobile = Settings.appSettingsGet('mobile');
this.menu = oScreen.menu;
kn.constructorEnd(this);
@ -44,6 +47,15 @@
// self.backToMailBoxClick();
// });
if (this.mobile)
{
oDom
.on('click', '.b-settings-menu .e-item.selectable', function () {
Globals.leftPanelDisabled(true);
})
;
}
key('up, down', Enums.KeyState.Settings, _.throttle(function (event, handler) {
var