X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.arrowSteps.js;h=b0c36c654851482b40d1dd0b4c9cfd989a6c3f59;hb=951c1016edbf1325119b814cd0e6a30e104868b4;hp=629ce32ca7628d71462e532806df66d0934b8b31;hpb=4d78d40d821227a9368e87306f447ffd3be5db88;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' ); } );