mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(sort): refresh when sorting notes via dialog
This commit is contained in:
parent
27c7888628
commit
7e01dfd220
@ -88,7 +88,9 @@ export default class SortChildNotesDialog extends BasicWidget {
|
|||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$form = this.$widget.find(".sort-child-notes-form");
|
this.$form = this.$widget.find(".sort-child-notes-form");
|
||||||
|
|
||||||
this.$form.on("submit", async () => {
|
this.$form.on("submit", async (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
const sortBy = this.$form.find("input[name='sort-by']:checked").val();
|
const sortBy = this.$form.find("input[name='sort-by']:checked").val();
|
||||||
const sortDirection = this.$form.find("input[name='sort-direction']:checked").val();
|
const sortDirection = this.$form.find("input[name='sort-direction']:checked").val();
|
||||||
const foldersFirst = this.$form.find("input[name='sort-folders-first']").is(":checked");
|
const foldersFirst = this.$form.find("input[name='sort-folders-first']").is(":checked");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user