fixed image onerror event handler

This commit is contained in:
Akinwale Ariwodola 2017-06-16 09:19:55 +01:00
parent bbebcac60c
commit ce2df654de

View file

@ -93,7 +93,7 @@
window.open('/claims/' + id, 'claim_details', 'width=1366,height=768,left=' + left + ',top=' + top);*/
});
$(document).on('error', '.claim-box img', function() {
$('.claim-box img').on('error', function() {
var img = $(this);
var parent = img.parent();
var text = parent.attr('data-autothumb');