Skip to content

Commit

Permalink
Issue #1063. Hide upload spinner in the case of an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed May 26, 2016
1 parent 007f3d0 commit c68f16c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webcompat/static/js/lib/issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ issues.ImageUploadView = Backbone.View.extend({
this.addImageUploadComment(response);
this._loaderImage.hide();
}, this),
error: function() {
error: _.bind(function() {
var msg = 'There was an error trying to upload the image.';
wcEvents.trigger('flash:error', {message: msg, timeout: 4000});
}
this._loaderImage.hide();
}, this)
});
}
},
Expand Down

0 comments on commit c68f16c

Please sign in to comment.