mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 22:29:19 +08:00
fix(sort): refresh when sorting notes via dialog
This commit is contained in:
parent
27c7888628
commit
7e01dfd220
1 changed files with 3 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue