Index: branches/REL1_16/extensions/GeeQuBox/GeeQuBox.php |
— | — | @@ -88,6 +88,13 @@ |
89 | 89 | . $eDir . 'js/jquery.lightbox-0.5.min.js"></script>' . PHP_EOL ); |
90 | 90 | self::$_page->addExtensionStyle( $eDir . '/css/jquery.lightbox-0.5.css', 'screen' ); |
91 | 91 | self::$_page->addInlineScript('$j(document).ready(function(){ |
| 92 | + $j("div.gallerybox").each(function(el){ |
| 93 | + var _a = $j("div.thumb a", this); |
| 94 | + var title = _a.attr("title"); |
| 95 | + var caption = $j("div.gallerytext > p", this).text(); |
| 96 | + if ( caption != "" ) |
| 97 | + _a.attr("title", title + caption); |
| 98 | + }); |
92 | 99 | $j("div.gallerybox a.image").lightBox({ |
93 | 100 | imageLoading: "'. $eDir .'images/lightbox-ico-loading.gif", |
94 | 101 | imageBtnClose: "'. $eDir .'images/lightbox-btn-close.gif", |