mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
moved dialog entrypoints into bootstrap, fixes
This commit is contained in:
@@ -2,7 +2,6 @@ import noteDetailService from '../services/note_detail.js';
|
||||
import utils from '../services/utils.js';
|
||||
import server from '../services/server.js';
|
||||
|
||||
const $showDialogButton = $(".show-labels-button");
|
||||
const $dialog = $("#labels-dialog");
|
||||
const $saveLabelsButton = $("#save-labels-button");
|
||||
const $labelsBody = $('#labels-table tbody');
|
||||
@@ -164,12 +163,6 @@ async function showDialog() {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).bind('keydown', 'alt+l', e => {
|
||||
showDialog();
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
ko.applyBindings(labelsModel, document.getElementById('labels-dialog'));
|
||||
|
||||
$(document).on('focus', '.label-name', function (e) {
|
||||
@@ -220,8 +213,6 @@ $(document).on('focus', '.label-value', async function (e) {
|
||||
$(this).autocomplete("search", $(this).val());
|
||||
});
|
||||
|
||||
$showDialogButton.click(showDialog);
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
Reference in New Issue
Block a user