mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Merge some parts of initByJson and initUpdateByMessageJson
Cleanup messageListChecked handling
This commit is contained in:
parent
46198861bc
commit
b66e68a3b1
8 changed files with 46 additions and 61 deletions
|
|
@ -146,7 +146,7 @@ class Selector {
|
|||
if (0 < len && aCheckedCache.includes(uid)) {
|
||||
isChecked = true;
|
||||
item.checked(true);
|
||||
len -= 1;
|
||||
--len;
|
||||
}
|
||||
|
||||
if (!isChecked && null !== mSelected && mSelected === uid) {
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ export function htmlToPlain(html) {
|
|||
limit = 800;
|
||||
|
||||
while (0 < limit) {
|
||||
limit -= 1;
|
||||
--limit;
|
||||
iP1 = text.indexOf('__bq__start__', pos);
|
||||
if (-1 < iP1) {
|
||||
iP2 = text.indexOf('__bq__start__', iP1 + 5);
|
||||
|
|
@ -778,17 +778,17 @@ export function computedPagenatorHelper(koCurrentPage, koPageCount) {
|
|||
}
|
||||
|
||||
while (0 < limit) {
|
||||
prev -= 1;
|
||||
next += 1;
|
||||
--prev;
|
||||
++next;
|
||||
|
||||
if (0 < prev) {
|
||||
fAdd(prev, false);
|
||||
limit -= 1;
|
||||
--limit;
|
||||
}
|
||||
|
||||
if (pageCount >= next) {
|
||||
fAdd(next, true);
|
||||
limit -= 1;
|
||||
--limit;
|
||||
} else if (0 >= prev) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue