Improve Previous / next editing buttons - it break at last/first element
Improve Previous / next editing buttons - it break at last/first element
Quasel
Posts: 18Questions: 3Answers: 0
https://editor.datatables.net/examples/api/backNext.html
add else to allow after the first element to get the last for previous and the other way round for next.
For "Next" Klick
else {
tt.fnSelect( rows[0] );
$('a.editor_edit').click();
}
For previous
else {
tt.fnSelect( rows[index-1] );
$('a.editor_edit').click();
}
This discussion has been closed.
Replies
good idea? yes/no ? at least it works perfectly for me :D
Hi,
Thanks for your post. Yes - completely agree! I'll look into fixing that for the next release.
Allan