some tweaking of password input box

This commit is contained in:
azivner 2017-09-06 22:03:53 -04:00
parent 5a64eed1dd
commit 1bc8a744a6
2 changed files with 5 additions and 4 deletions

View File

@ -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">
</div>
<button class="btn btn-sm">Show</button> <button class="btn btn-sm">Show</button>
</div>
</form> </form>
</div> </div>

View File

@ -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');
} }