Added keyboard shortcuts (part 1) (#70)

Scrolling in message view (#109)
This commit is contained in:
RainLoop Team 2014-04-08 01:03:58 +04:00
parent 3936a818b7
commit 8979687f88
37 changed files with 2095 additions and 333 deletions

View file

@ -12,8 +12,9 @@ function ContactModel()
this.readOnly = false;
this.scopeType = Enums.ContactScopeType.Default;
this.checked = ko.observable(false);
this.focused = ko.observable(false);
this.selected = ko.observable(false);
this.checked = ko.observable(false);
this.deleted = ko.observable(false);
this.shared = ko.observable(false);
}
@ -118,6 +119,10 @@ ContactModel.prototype.lineAsCcc = function ()
{
aResult.push('shared');
}
if (this.focused())
{
aResult.push('focused');
}
return aResult.join(' ');
};

View file

@ -24,6 +24,7 @@ function FolderModel()
this.type = ko.observable(Enums.FolderType.User);
this.focused = ko.observable(false);
this.selected = ko.observable(false);
this.edited = ko.observable(false);
this.collapsed = ko.observable(true);

View file

@ -35,6 +35,7 @@ function MessageModel()
this.forwarded = ko.observable(false);
this.isReadReceipt = ko.observable(false);
this.focused = ko.observable(false);
this.selected = ko.observable(false);
this.checked = ko.observable(false);
this.hasAttachments = ko.observable(false);
@ -514,6 +515,10 @@ MessageModel.prototype.lineAsCcc = function ()
{
aResult.push('forwarded');
}
if (this.focused())
{
aResult.push('focused');
}
if (this.hasAttachments())
{
aResult.push('withAttachments');