Skip to content

Commit d671ec7

Browse files
committed
Revert "Selection Table stores row order rules in its GUI object, not at top level."
This reverts commit 15db397.
1 parent 15db397 commit d671ec7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django/applications/catmaid/static/js/widgets/coordinates-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
if (datatable) {
247247
this.page = datatable.page();
248248
this.entriesPerPage = datatable.page.len();
249-
this.order = datatable.order();
249+
this.order = datatable.order(); // TODO this is in CoordinatesTable, not in GUI. Error is in SelectionTable as well
250250
datatable.destroy();
251251
}
252252
}

django/applications/catmaid/static/js/widgets/selection-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
this.next_color_index = 0;
2828
this.batchColor = '#ffff00';
2929
this.batchOpacity = 1.0;
30+
this.order = [[0, 'asc']];
3031
this.annotationFilter = null;
3132
this.appendWithBatchColor = false;
3233
this.gui = new this.GUI(this);
@@ -1132,7 +1133,6 @@
11321133
this.datatable = null;
11331134
this.page = 0;
11341135
this.entriesPerPage = 25;
1135-
this.order = [[0, 'asc']];
11361136
this.showVisibilityControls = true;
11371137
};
11381138

0 commit comments

Comments
 (0)