Skip to content

Commit ad9cd98

Browse files
committed
Don't change current term listing page on ajax edit.
1 parent 87993b7 commit ad9cd98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lute/templates/term/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@
142142
success: function(response) {
143143
// console.log('Success:', response.status);
144144
_show_saved_checkmark(td);
145-
$('#termtable').DataTable().draw();
145+
// Stay on page 2 if editing an element on page 2. :-P
146+
const change_current_page_on_redraw = false;
147+
$('#termtable').DataTable().draw(change_current_page_on_redraw);
146148
},
147149
error: function(xhr) {
148150
if (xhr.responseJSON && xhr.responseJSON.error) {

0 commit comments

Comments
 (0)