migrated all remaining dialogs to bootstrap modals, #203

This commit is contained in:
azivner
2018-11-06 17:47:40 +01:00
parent 6fb99ae89e
commit 2f4ef0a4a2
29 changed files with 480 additions and 397 deletions

View File

@@ -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(() => {