From ce2df654de0de39a959c8f4d7dcfa803c579015e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 16 Jun 2017 09:19:55 +0100 Subject: [PATCH] fixed image onerror event handler --- src/Template/Main/index.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Main/index.ctp b/src/Template/Main/index.ctp index fa502da..a508c05 100644 --- a/src/Template/Main/index.ctp +++ b/src/Template/Main/index.ctp @@ -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');