Guest User

Untitled

a guest
Oct 18th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. $ diff jquery.lightbox-0.5.js~ jquery.lightbox-0.5.js
  3. 188,192c188,198
  4. <                               $('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);
  5. <                               // Perfomance an effect in the image container resizing it
  6. <                               _resize_container_image_box(objImagePreloader.width,objImagePreloader.height);
  7. <                               //      clear onLoad, IE behaves irratically with animated gifs otherwise
  8. <                               objImagePreloader.onload=function(){};
  9. ---
  10. >                           $('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);
  11. >                           // Perfomance an effect in the image container resizing it
  12. >                           width = objImagePreloader.width;
  13. >                           height = objImagePreloader.height;
  14. >                           width = (width > 1000) ? 1000 : width;
  15. >                           height = (width == 1000) ? (1000/objImagePreloader.width)*height : height;
  16. >                           $('#lightbox-image').attr("height", height);
  17. >                           $('#lightbox-image').attr("width", width);
  18. >                           _resize_container_image_box(width, height);
  19. >                           //  clear onLoad, IE behaves irratically with animated gifs otherwise
  20. >                           objImagePreloader.onload=function(){};
Add Comment
Please, Sign In to add comment