mirror of
https://github.com/qurator-spk/neat.git
synced 2025-07-11 11:29:52 +02:00
fix << resp. >> bug
This commit is contained in:
parent
9858c9de18
commit
dbbf852375
1 changed files with 5 additions and 0 deletions
5
neat.js
5
neat.js
|
@ -923,6 +923,8 @@ function setupInterface(data, file, urls) {
|
||||||
|
|
||||||
function stepsBackward (nrows) {
|
function stepsBackward (nrows) {
|
||||||
|
|
||||||
|
if (editingTd != null) return;
|
||||||
|
|
||||||
if (startIndex >= nrows) {
|
if (startIndex >= nrows) {
|
||||||
startIndex -= nrows;
|
startIndex -= nrows;
|
||||||
endIndex -= nrows;
|
endIndex -= nrows;
|
||||||
|
@ -936,6 +938,9 @@ function setupInterface(data, file, urls) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stepsForward(nrows) {
|
function stepsForward(nrows) {
|
||||||
|
|
||||||
|
if (editingTd != null) return;
|
||||||
|
|
||||||
if (endIndex + nrows < data.data.length) {
|
if (endIndex + nrows < data.data.length) {
|
||||||
endIndex += nrows;
|
endIndex += nrows;
|
||||||
startIndex = endIndex - displayRows;
|
startIndex = endIndex - displayRows;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue