Form and reset fixes
This commit is contained in:
parent
8db2ba2b60
commit
1ff7b113d9
3 changed files with 6 additions and 3 deletions
|
@ -246,7 +246,9 @@
|
|||
<div class="hidden" id="uploadfinish">
|
||||
<h1><a href="" id="finallink">Link</a></h1>
|
||||
</div>
|
||||
<input type="file" id="filepicker" class="hidden" />
|
||||
<form>
|
||||
<input type="file" id="filepicker" class="hidden" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ $(function () {
|
|||
}
|
||||
|
||||
details.find('.preview').addClass('hidden')
|
||||
details.find('img').removeClass('dragged').removeClass('dragging')
|
||||
details.find('img').removeClass('dragged').removeClass('dragging').width('auto').height('auto')
|
||||
details.find('video.preview').prop('src', '')
|
||||
details.find('audio.preview').prop('src', '')
|
||||
previewimg.prop('src', '')
|
||||
|
|
|
@ -33,7 +33,6 @@ $(function () {
|
|||
},
|
||||
type: 'POST'
|
||||
}).done(function (response) {
|
||||
progress.text('Encrypting')
|
||||
progressbg.css('width', 0);
|
||||
pastearea.removeClass('hidden')
|
||||
uploadprogress.addClass('hidden')
|
||||
|
@ -45,6 +44,7 @@ $(function () {
|
|||
function doupload(file) {
|
||||
pastearea.addClass('hidden')
|
||||
uploadprogress.removeClass('hidden')
|
||||
progress.text('Encrypting')
|
||||
crypt.encrypt(file).done(encrypted)
|
||||
}
|
||||
|
||||
|
@ -152,6 +152,7 @@ $(function () {
|
|||
filepicker.on('change', function (e) {
|
||||
if (e.target.files.length > 0) {
|
||||
doupload(e.target.files[0])
|
||||
filepicker.closest('form')[0].reset()
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue