note actions now work again

This commit is contained in:
zadam
2019-05-05 18:24:59 +02:00
parent b1d0cef33b
commit 9a97fe09ee
8 changed files with 49 additions and 30 deletions

View File

@@ -126,7 +126,9 @@ if (utils.isElectron()) {
});
}
$("#export-note-button").click(function () {
const $noteTabContainer = $("#note-tab-container");
$noteTabContainer.on("click", ".export-note-button", function () {
if ($(this).hasClass("disabled")) {
return;
}
@@ -134,12 +136,12 @@ $("#export-note-button").click(function () {
exportDialog.showDialog('single');
});
$noteTabContainer.on("click", ".import-files-button", importDialog.showDialog);
$('[data-toggle="tooltip"]').tooltip({
html: true
});
$("#import-files-button").click(importDialog.showDialog);
macInit.init();
searchNotesService.init(); // should be in front of treeService since that one manipulates address bar hash