Merge pull request #43 from gavtroy/decrypt-enter-key
Autofocus inputs, handle Enter key after entering decryption password
This commit is contained in:
commit
39758cab54
2 changed files with 10 additions and 1 deletions
|
@ -139,6 +139,15 @@ $(document).ready(function() {
|
|||
$('#burn-dropdown-btn').text("Burn: " + this.innerHTML);
|
||||
});
|
||||
|
||||
$('#password-modal').on('shown.bs.modal', function () {
|
||||
$('#modal-password').trigger('focus');
|
||||
})
|
||||
|
||||
$('#password-modal form').submit(function(event) {
|
||||
event.preventDefault();
|
||||
$('#decrypt-btn').click();
|
||||
});
|
||||
|
||||
$('#decrypt-btn').click(function(event) {
|
||||
var pass = $("#modal-password").val();
|
||||
var data = "";
|
||||
|
|
|
@ -254,7 +254,7 @@
|
|||
|
||||
{{#if is_editable}}
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" id="content-textarea" rows="25">{{pastebin_code}}</textarea>
|
||||
<textarea autofocus class="form-control" id="content-textarea" rows="25">{{pastebin_code}}</textarea>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if is_created or is_clone}}
|
||||
|
|
Loading…
Reference in a new issue