Permalink
Browse files

replace deprecated jQuery .error() method (#2508)

  • Loading branch information...
ewwink authored and LeoColomb committed Feb 10, 2019
1 parent f4574fe commit 1f2af77bb85cbc9caf4abcd1cae219381698646a
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/infos.js
@@ -36,7 +36,7 @@ $(document).ready(function(){

// If an image src is erroneous (404 or anything) replace it with a transparent gif
$('.fix_images').each(function(i,img) {
$(img).error(function(){
$(img).on("error", function(){
$(img).attr('src', 'images/blank.gif');
});
});
@@ -45,4 +45,4 @@ $(document).ready(function(){
$('#tabs ul#headers li a[href="#stat_tab_share"]').click(function(){
init_clipboard();
});
});
});

0 comments on commit 1f2af77

Please sign in to comment.