mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
some tweaking of password input box
This commit is contained in:
parent
5a64eed1dd
commit
1bc8a744a6
@ -104,14 +104,13 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="encryptionPasswordDialog" title="Enter password" style="display: none;">
|
||||
<div id="encryptionPasswordDialog" title="Encrypted note" style="display: none;">
|
||||
<form id="encryptionPasswordForm">
|
||||
<div class="form-group">
|
||||
<label for="encryptionPassword">This note is encrypted. Enter password to show it:</label>
|
||||
<input id="encryptionPassword" type="password">
|
||||
<input id="encryptionPassword" style="width: 250px;" type="password">
|
||||
<button class="btn btn-sm">Show</button>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-sm">Show</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
@ -194,6 +194,8 @@ function loadNote(noteId) {
|
||||
|
||||
handleEncryption(note.detail.encryption > 0, false, () => {
|
||||
$("#noteDetailWrapper").show();
|
||||
|
||||
// this may fal if the dialog has not been previously opened
|
||||
try {
|
||||
$("#encryptionPasswordDialog").dialog('close');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user