mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
refactoring of legacy js events
This commit is contained in:
@@ -130,13 +130,13 @@ $detail.on("click", ".note-menu-button", async e => {
|
||||
});
|
||||
});
|
||||
|
||||
$("#switch-to-desktop-button").click(() => {
|
||||
$("#switch-to-desktop-button").on('click', () => {
|
||||
utils.setCookie('trilium-device', 'desktop');
|
||||
|
||||
utils.reloadApp();
|
||||
});
|
||||
|
||||
$("#log-out-button").click(() => {
|
||||
$("#log-out-button").on('click', () => {
|
||||
$("#logout-form").submit();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user