mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Trigger loadMoreHistory with semantic history
This commit is contained in:
parent
d702cbf548
commit
9a3238fb3b
@ -328,9 +328,6 @@ define([
|
||||
if (isNaN(i)) { return; }
|
||||
if (i > 0) { i = 0; }
|
||||
if (i < -(states.length - 2)) { i = -(states.length - 2); }
|
||||
if (i <= -(states.length - 11)) {
|
||||
loadMore();
|
||||
}
|
||||
|
||||
var idx = getIndex(i);
|
||||
if (semantic && i !== c) {
|
||||
@ -346,6 +343,10 @@ define([
|
||||
}
|
||||
}
|
||||
|
||||
if (i <= -(states.length - 11)) {
|
||||
loadMore();
|
||||
}
|
||||
|
||||
if (blockOnly) { return states[idx]; }
|
||||
|
||||
var val = states[idx].getContent().doc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user