Improve Previous / next editing buttons - it break at last/first element

Improve Previous / next editing buttons - it break at last/first element

QuaselQuasel Posts: 18Questions: 3Answers: 0
edited November 2014 in Free community support

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();
}

Replies

  • QuaselQuasel Posts: 18Questions: 3Answers: 0

    good idea? yes/no ? at least it works perfectly for me :D

  • allanallan Posts: 62,522Questions: 1Answers: 10,272 Site admin

    Hi,

    Thanks for your post. Yes - completely agree! I'll look into fixing that for the next release.

    Allan

This discussion has been closed.