r80349 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80348‎ | r80349 | r80350 >
Date:23:01, 14 January 2011
Author:krinkle
Status:deferred
Tags:
Comment:
title and data-filename attribute added to search result imgs
Modified paths:
  • /trunk/tools/wp-photocommons/js/search.js (modified) (history)

Diff [purge]

Index: trunk/tools/wp-photocommons/js/search.js
@@ -111,7 +111,8 @@
112112 $.each( data.query.pageids, function( key, pageid ) {
113113 var img = data.query.pages[pageid];
114114 if ( img.imageinfo && img.imageinfo[0] ) {
115 - $( '<img style="display:none"/>' ).attr({
 115+ $( '<img>' ).attr({
 116+ 'style': 'display:none',
116117 'src': img.imageinfo[0].thumburl,
117118 'title': img.title,
118119 'data-filename': img.title

Status & tagging log