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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="encryptionPasswordDialog" title="Enter password" style="display: none;">
|
<div id="encryptionPasswordDialog" title="Encrypted note" style="display: none;">
|
||||||
<form id="encryptionPasswordForm">
|
<form id="encryptionPasswordForm">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="encryptionPassword">This note is encrypted. Enter password to show it:</label>
|
<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>
|
</div>
|
||||||
|
|
||||||
<button class="btn btn-sm">Show</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -194,6 +194,8 @@ function loadNote(noteId) {
|
|||||||
|
|
||||||
handleEncryption(note.detail.encryption > 0, false, () => {
|
handleEncryption(note.detail.encryption > 0, false, () => {
|
||||||
$("#noteDetailWrapper").show();
|
$("#noteDetailWrapper").show();
|
||||||
|
|
||||||
|
// this may fal if the dialog has not been previously opened
|
||||||
try {
|
try {
|
||||||
$("#encryptionPasswordDialog").dialog('close');
|
$("#encryptionPasswordDialog").dialog('close');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user