fix(sort): refresh when sorting notes via dialog

This commit is contained in:
Elian Doran
2025-07-30 19:45:01 +03:00
parent 27c7888628
commit 7e01dfd220

View File

@@ -88,7 +88,9 @@ export default class SortChildNotesDialog extends BasicWidget {
this.$widget = $(TPL);
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 sortDirection = this.$form.find("input[name='sort-direction']:checked").val();
const foldersFirst = this.$form.find("input[name='sort-folders-first']").is(":checked");