Skip to content

Commit

Permalink
Added error handler for ajax fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Goctionni committed Oct 12, 2015
1 parent 765c0dd commit 0d454fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v0.9.3.html
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,10 @@ <h1>Kink list</h1>
$('#Loading').hide();
var url = 'https://i.imgur.com/' + result.data.id + '.png';
$('#URL').val(url).fadeIn();
},
fail: function(){
$('#Loading').hide();
alert('Failed to upload to imgur, could not connect');
}
});
},
Expand Down

0 comments on commit 0d454fc

Please sign in to comment.