Skip to content

Commit

Permalink
Merge pull request #1040 from /issues/1039/1
Browse files Browse the repository at this point in the history
Fixes #1039. Clear out screenshotData in showRemoveUpload.
  • Loading branch information
adamopenweb committed May 4, 2016
2 parents 293b827 + b2ff68a commit 37e25d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webcompat/static/js/lib/bugform.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@ function BugForm() {
removeBanner.removeClass('is-hidden');
uploadWrapper.addClass('is-hidden');
removeBanner.on('click', _.bind(function() {
// clear out the input value, remove the preview and hide the banner
// clear out the input value or screenshot data
this.uploadField.val(this.uploadField.get(0).defaultValue);
this.screenshotData = '';
// remove the preview and hide the banner
label.css('background', 'none');
removeBanner.addClass('is-hidden');
uploadWrapper.removeClass('is-hidden');
Expand Down

0 comments on commit 37e25d1

Please sign in to comment.