r77858 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77857‎ | r77858 | r77859 >
Date:05:14, 6 December 2010
Author:werdna
Status:deferred
Tags:
Comment:
More accurate way of determining the path
Modified paths:
  • /trunk/extensions/LiquidThreads/lqt.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/lqt.js
@@ -842,9 +842,10 @@
843843
844844 'showThreadLinkWindow' : function(e) {
845845 e.preventDefault();
846 - var linkURL = $j(this).find('a').attr('href');
847846 var thread = $j(this).closest('.lqt_thread');
848847 var linkTitle = thread.find('.lqt-thread-title-metadata').val();
 848+ var linkURL = wgArticlePath.replace( "$1", linkTitle.replace(' ', '_' ) );
 849+ linkURL = wgServer + linkURL;
849850 liquidThreads.showLinkWindow( linkTitle, linkURL );
850851 },
851852

Status & tagging log