Skip to content

Commit 3bfdeea

Browse files
committed
Merge pull request #987 from /issues/986/1
Fixes #986. Fix incorrect reference to form element.
2 parents b21d155 + e75d90d commit 3bfdeea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webcompat/static/js/lib/bugform.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
function BugForm() {
6-
this.form = $('#js-ReportForm');
6+
this.form = $('#js-ReportForm form');
77
this.urlField = $('#url');
88
this.descField = $('#description');
99
this.uploadField = $('#image');
@@ -278,7 +278,7 @@ function BugForm() {
278278
uploadWrapper.addClass('is-hidden');
279279
removeBanner.on('click', _.bind(function() {
280280
// clear out the input value, remove the preview and hide the banner
281-
this.uploadField.val(this.uploadField.get().defaultValue);
281+
this.uploadField.val(this.uploadField.get(0).defaultValue);
282282
label.css('background', 'none');
283283
removeBanner.addClass('is-hidden');
284284
uploadWrapper.removeClass('is-hidden');

0 commit comments

Comments
 (0)