mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
close currently active dialog if a different one is activated
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import noteDetailService from '../services/note_detail.js';
|
||||
import utils from "../services/utils.js";
|
||||
|
||||
const $dialog = $("#note-source-dialog");
|
||||
const $noteSource = $("#note-source");
|
||||
|
||||
function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.modal();
|
||||
|
||||
Reference in New Issue
Block a user