mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
more cleanup
This commit is contained in:
@@ -7,8 +7,6 @@ const noteEditor = (function() {
|
||||
const protectButton = $("#protect-button");
|
||||
const unprotectButton = $("#unprotect-button");
|
||||
const noteDetailWrapperEl = $("#note-detail-wrapper");
|
||||
const encryptionPasswordDialogEl = $("#protected-session-password-dialog");
|
||||
const encryptionPasswordEl = $("#protected-session-password");
|
||||
|
||||
let currentNote = null;
|
||||
|
||||
@@ -206,14 +204,6 @@ const noteEditor = (function() {
|
||||
|
||||
noteDetailWrapperEl.show();
|
||||
|
||||
// this may fal if the dialog has not been previously opened
|
||||
try {
|
||||
encryptionPasswordDialogEl.dialog('close');
|
||||
}
|
||||
catch(e) {}
|
||||
|
||||
encryptionPasswordEl.val('');
|
||||
|
||||
noteTitleEl.val(currentNote.detail.note_title);
|
||||
|
||||
noteChangeDisabled = true;
|
||||
|
||||
Reference in New Issue
Block a user