mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 08:46:43 +01:00
migrated all remaining dialogs to bootstrap modals, #203
This commit is contained in:
@@ -11,17 +11,12 @@ const $resultBody = $('#sql-console-results tbody');
|
||||
|
||||
let codeEditor;
|
||||
|
||||
$dialog.on("shown.bs.modal", e => initEditor());
|
||||
|
||||
function showDialog() {
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.dialog({
|
||||
modal: true,
|
||||
width: $(window).width(),
|
||||
height: $(window).height(),
|
||||
open: function() {
|
||||
initEditor();
|
||||
}
|
||||
});
|
||||
$dialog.modal();
|
||||
}
|
||||
|
||||
async function initEditor() {
|
||||
|
||||
Reference in New Issue
Block a user