r83407 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83406‎ | r83407 | r83408 >
Date:21:31, 6 March 2011
Author:purodha
Status:ok
Tags:
Comment:
Fix permalink URL for threads having 2 or more spaces in their titles.
Modified paths:
  • /trunk/extensions/LiquidThreads/lqt.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/lqt.js
@@ -831,7 +831,7 @@
832832 e.preventDefault();
833833 var thread = $j(this).closest('.lqt_thread');
834834 var linkTitle = thread.find('.lqt-thread-title-metadata').val();
835 - var linkURL = wgArticlePath.replace( "$1", linkTitle.replace(' ', '_' ) );
 835+ var linkURL = wgArticlePath.replace( "$1", linkTitle.replace(/ /g, '_' ) );
836836 linkURL = wgServer + linkURL;
837837 liquidThreads.showLinkWindow( linkTitle, linkURL );
838838 },

Status & tagging log