r82087 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82086‎ | r82087 | r82088 >
Date:22:33, 13 February 2011
Author:kwisatz
Status:deferred
Tags:
Comment:
supporting gallerytext captions in the 1.16 branch
Modified paths:
  • /branches/REL1_16/extensions/GeeQuBox/GeeQuBox.php (modified) (history)

Diff [purge]

Index: branches/REL1_16/extensions/GeeQuBox/GeeQuBox.php
@@ -88,6 +88,13 @@
8989 . $eDir . 'js/jquery.lightbox-0.5.min.js"></script>' . PHP_EOL );
9090 self::$_page->addExtensionStyle( $eDir . '/css/jquery.lightbox-0.5.css', 'screen' );
9191 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+ });
9299 $j("div.gallerybox a.image").lightBox({
93100 imageLoading: "'. $eDir .'images/lightbox-ico-loading.gif",
94101 imageBtnClose: "'. $eDir .'images/lightbox-btn-close.gif",

Status & tagging log