mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
migrated all remaining dialogs to bootstrap modals, #203
This commit is contained in:
@@ -3,20 +3,17 @@ import server from '../services/server.js';
|
||||
import treeCache from "../services/tree_cache.js";
|
||||
import treeUtils from "../services/tree_utils.js";
|
||||
|
||||
const $dialog = $("#edit-tree-prefix-dialog");
|
||||
const $form = $("#edit-tree-prefix-form");
|
||||
const $treePrefixInput = $("#tree-prefix-input");
|
||||
const $noteTitle = $('#tree-prefix-note-title');
|
||||
const $dialog = $("#branch-prefix-dialog");
|
||||
const $form = $("#branch-prefix-form");
|
||||
const $treePrefixInput = $("#branch-prefix-input");
|
||||
const $noteTitle = $('#branch-prefix-note-title');
|
||||
|
||||
let branchId;
|
||||
|
||||
async function showDialog() {
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
await $dialog.dialog({
|
||||
modal: true,
|
||||
width: 600
|
||||
});
|
||||
$dialog.modal();
|
||||
|
||||
const currentNode = treeService.getCurrentNode();
|
||||
|
||||
@@ -37,7 +34,7 @@ async function savePrefix() {
|
||||
|
||||
await treeService.setPrefix(branchId, prefix);
|
||||
|
||||
$dialog.dialog("close");
|
||||
$dialog.modal('hide');
|
||||
}
|
||||
|
||||
$form.submit(() => {
|
||||
|
||||
Reference in New Issue
Block a user