X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.arrowSteps.js;h=b0c36c654851482b40d1dd0b4c9cfd989a6c3f59;hb=f2b09f04f22a64e3f65bd6728902736434f71f00;hp=629ce32ca7628d71462e532806df66d0934b8b31;hpb=2a2bbf0a5ddb382d2ca1ef7618c42ce3023379d8;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.arrowSteps.js b/resources/src/jquery/jquery.arrowSteps.js index 629ce32ca7..b0c36c6548 100644 --- a/resources/src/jquery/jquery.arrowSteps.js +++ b/resources/src/jquery/jquery.arrowSteps.js @@ -51,7 +51,7 @@ $stepDiv = $steps.filter( ':not(:last-child)' ).addClass( 'arrow' ).find( 'div' ); // Execute when complete page is fully loaded, including all frames, objects and images - $( window ).load( function () { + $( window ).on( 'load', function () { arrowWidth = parseInt( $el.outerHeight(), 10 ); $stepDiv.css( paddingSide, arrowWidth.toString() + 'px' ); } );