r59886 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59885‎ | r59886 | r59887 >
Date:13:36, 9 December 2009
Author:werdna
Status:deferred
Tags:
Comment:
Fix replying to top-level threads with no existing replies
Modified paths:
  • /trunk/extensions/LiquidThreads/lqt.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/lqt.js
@@ -28,6 +28,7 @@
2929
3030 var repliesElement = $j(container).contents().filter('.lqt-thread-replies');
3131 var replyDiv = repliesElement.contents().filter('.lqt-reply-form');
 32+ replyDiv = replyDiv.add( $j(container).contents().filter('.lqt-reply-form') );
3233 if (!replyDiv.length) {
3334 // Create a div for it
3435 replyDiv = $j('<div class="lqt-reply-form lqt-edit-form"/>');
@@ -46,6 +47,7 @@
4748
4849 repliesElement.find('.lqt-replies-finish').before( replyDiv );
4950 }
 51+ replyDiv.show();
5052
5153 replyDiv = replyDiv[0];
5254

Follow-up revisions

RevisionCommit summaryAuthorDate
r59887Merge r59885, r59886werdna13:38, 9 December 2009

Status & tagging log