moved dialog entrypoints into bootstrap, fixes

This commit is contained in:
azivner
2018-03-25 19:49:33 -04:00
parent 19c605a9a8
commit 341f47f0f2
15 changed files with 62 additions and 102 deletions

View File

@@ -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
};