r32731 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32730‎ | r32731 | r32732 >
Date:01:42, 3 April 2008
Author:dale
Status:old
Tags:
Comment:
rss output link fix
Modified paths:
  • /trunk/extensions/MetavidWiki/skins/mv_allpages.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/skins/mv_allpages.js
@@ -37,7 +37,7 @@
3838 //pass along all url params (update the title)
3939 podLink+='?';
4040 for(i in sURL.queryKey){
41 - if(i !='title')podLink+=i+'='+sURL.queryKey[i];
 41+ if(i !='title')podLink+=i+'='+sURL.queryKey[i]+'&';
4242 }
4343 }else{
4444 // /title/askparam format
@@ -52,11 +52,13 @@
5353 }
5454 //if we have an inline query add a search link
5555 $j('.smwtable').each(function(){
56 - var pLink = $j('#'+this.id+' .smwfooter a').attr('href').replace('Special:Ask',mvAskTitle );
57 - var colspan = $j('.smwfooter .sortbottom').attr('colspan');
58 - var pHTML = '<a title="'+msg_video_rss+'" href="'+pLink+'">'+rssImg+'</a>';
59 - js_log("plink: "+pLink + ' colspan:'+ colspan + ' ph:'+pHTML);
60 - $j('#'+this.id+' tbody').prepend('<tr><td colspan="'+colspan+'">'+pHTML+'</td></tr>');
 56+ if($j('#'+this.id+' .smwfooter a').length!=0){
 57+ var pLink = $j('#'+this.id+' .smwfooter a').attr('href').replace('Special:Ask',mvAskTitle );
 58+ var colspan = $j('.smwfooter .sortbottom').attr('colspan');
 59+ var pHTML = '<a title="'+msg_video_rss+'" href="'+pLink+'">'+rssImg+'</a>';
 60+ js_log("plink: "+pLink + ' colspan:'+ colspan + ' ph:'+pHTML);
 61+ $j('#'+this.id+' tbody').prepend('<tr><td colspan="'+colspan+'">'+pHTML+'</td></tr>');
 62+ }
6163 });
6264 }
6365 function mv_do_mvd_link_rewrite(){

Status & tagging log