mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Small fixes
This commit is contained in:
parent
ff8ef2012b
commit
c9b5194baf
33 changed files with 296 additions and 58 deletions
|
|
@ -178,6 +178,15 @@ function MailBoxMessageListViewModel()
|
|||
}
|
||||
}, this));
|
||||
|
||||
RL
|
||||
.sub('mailbox.message-list.selector.go-down', function () {
|
||||
this.selector.goDown();
|
||||
}, this)
|
||||
.sub('mailbox.message-list.selector.go-up', function () {
|
||||
this.selector.goUp();
|
||||
}, this)
|
||||
;
|
||||
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,11 @@ function MailBoxMessageViewViewModel()
|
|||
// TODO
|
||||
window.console.log(arguments);
|
||||
}, this.messageVisibility);
|
||||
|
||||
this.spamCommand = Utils.createCommand(this, function () {
|
||||
// TODO
|
||||
window.console.log(arguments);
|
||||
}, this.messageVisibility);
|
||||
|
||||
// viewer
|
||||
this.viewSubject = ko.observable('');
|
||||
|
|
@ -147,6 +152,14 @@ function MailBoxMessageViewViewModel()
|
|||
this.scrollMessageToTop();
|
||||
}, this);
|
||||
|
||||
this.goUpCommand = Utils.createCommand(this, function () {
|
||||
RL.pub('mailbox.message-list.selector.go-up');
|
||||
});
|
||||
|
||||
this.goDownCommand = Utils.createCommand(this, function () {
|
||||
RL.pub('mailbox.message-list.selector.go-down');
|
||||
});
|
||||
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,17 +56,26 @@ function PopupsComposeViewModel()
|
|||
this.saving = ko.observable(false);
|
||||
this.attachments = ko.observableArray([]);
|
||||
|
||||
this.attachmentsInProcess = ko.computed(function () {
|
||||
return _.filter(this.attachments(), function (oItem) {
|
||||
return oItem && '' === oItem.tempName();
|
||||
});
|
||||
}, this);
|
||||
// this.attachmentsInProcess = ko.computed(function () {
|
||||
// return _.filter(this.attachments(), function (oItem) {
|
||||
// return oItem && '' === oItem.tempName();
|
||||
// });
|
||||
// }, this);
|
||||
//
|
||||
// this.attachmentsInReady = ko.computed(function () {
|
||||
// return _.filter(this.attachments(), function (oItem) {
|
||||
// return oItem && '' !== oItem.tempName();
|
||||
// });
|
||||
// }, this);
|
||||
|
||||
this.attachmentsInReady = ko.computed(function () {
|
||||
return _.filter(this.attachments(), function (oItem) {
|
||||
return oItem && '' !== oItem.tempName();
|
||||
});
|
||||
}, this);
|
||||
|
||||
this.attachmentsInProcess = this.attachments.filter(function (oItem) {
|
||||
return oItem && '' === oItem.tempName();
|
||||
});
|
||||
|
||||
this.attachmentsInReady = this.attachments.filter(function (oItem) {
|
||||
return oItem && '' !== oItem.tempName();
|
||||
});
|
||||
|
||||
this.attachments.subscribe(function () {
|
||||
this.triggerForResize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue