mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Small fixes
This commit is contained in:
parent
ff8ef2012b
commit
c9b5194baf
33 changed files with 296 additions and 58 deletions
|
|
@ -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