Skip to content

Commit

Permalink
Don't change current term listing page on ajax edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Jan 23, 2025
1 parent 87993b7 commit ad9cd98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lute/templates/term/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@
success: function(response) {
// console.log('Success:', response.status);
_show_saved_checkmark(td);
$('#termtable').DataTable().draw();
// Stay on page 2 if editing an element on page 2. :-P
const change_current_page_on_redraw = false;
$('#termtable').DataTable().draw(change_current_page_on_redraw);
},
error: function(xhr) {
if (xhr.responseJSON && xhr.responseJSON.error) {
Expand Down

0 comments on commit ad9cd98

Please sign in to comment.