mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Small fixes
+ BUTTON_THREAD_MORE
This commit is contained in:
parent
3dac6809d1
commit
1481bd88e5
34 changed files with 118 additions and 53 deletions
|
|
@ -382,10 +382,23 @@ html.rl-no-preview-pane {
|
|||
padding: 4px 8px 6px 10px;
|
||||
}
|
||||
|
||||
&.hide-more .thread-list-message.more-that {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.thread-date {
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.more-threads {
|
||||
text-align: center;
|
||||
padding: 8px;
|
||||
background-color: #F5F5F5;
|
||||
color: #555;
|
||||
text-decoration: underline;
|
||||
border-bottom: 1px dashed #555;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -213,9 +213,12 @@
|
|||
|
||||
this.viewThreadMessages = ko.observableArray([]);
|
||||
this.viewThreadMessages.error = ko.observable('');
|
||||
this.viewThreadMessages.showMore = ko.observable(false);
|
||||
this.viewThreadMessages.limit = 6;
|
||||
|
||||
this.viewThreadMessages.subscribe(function () {
|
||||
this.viewThreadMessages.subscribe(function (aList) {
|
||||
this.viewThreadMessages.error('');
|
||||
this.viewThreadMessages.showMore(this.viewThreadMessages.limit >= aList.length);
|
||||
}, this);
|
||||
|
||||
MessageStore.messageLastThreadUidsData.subscribe(function (oData) {
|
||||
|
|
@ -723,6 +726,10 @@
|
|||
oEvent.stopPropagation();
|
||||
}
|
||||
})
|
||||
.on('click', '.thread-list .more-threads', function () {
|
||||
self.viewThreadMessages.showMore(true);
|
||||
return false;
|
||||
})
|
||||
.on('click', '.thread-list .thread-list-message', function () {
|
||||
var oMessage = ko.dataFor(this);
|
||||
if (oMessage && oMessage.folder && oMessage.uid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue