Changeset 27566 for extensions/Slide/js/slide.js
- Timestamp:
- Mar 6, 2014, 12:37:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slide/js/slide.js
r27026 r27566 313 313 _GThumb() 314 314 }; 315 if($('body').hasClass('MyPiwiShop')||$('body').hasClass('MyPiwiShopReady')) { 316 _MyPiwiShop() 317 }; 318 315 319 }; 316 320 … … 543 547 var $next = $(html).find('.pwg-button-icon-right').attr('href'), 544 548 $title = $(html).find('#imageHeaderBar h2').text(), 545 $img = $(html).find('#theImage img').attr('src'); 546 _stock_img($img,$title); 549 $img = $(html).find('#theImage #imgContent').data('src'), 550 $img_h = $(html).find('#theImage #imgContent').data('height'), 551 $img_w = $(html).find('#theImage #imgContent').data('width'); 552 553 _stock_img($img,$title,$img_h,$img_w); 547 554 if(typeof $next != "undefined"){ 548 555 _load_slideshow($next,$slideW) … … 565 572 }; 566 573 567 function _stock_img($href,$title){ 568 var $img = {src : $href , title : $title , descr : $title}; 574 function _stock_img($href,$title,$height,$width){ 575 var $img = {src : $href , title : $title , descr : $title , height : $height , width : $width}; 576 console.debug($img); 569 577 $slideshow.push($img); 570 578 };
Note: See TracChangeset
for help on using the changeset viewer.