r98122 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98121‎ | r98122 | r98123 >
Date:10:27, 26 September 2011
Author:catrope
Status:ok
Tags:
Comment:
MoodBar: Only drop the first comment in 'more' mode
Modified paths:
  • /trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js
@@ -161,9 +161,11 @@
162162 return;
163163 }
164164
165 - // Drop the first element because it duplicates the last shown one
166 - comments.shift();
167 - len--;
 165+ if ( mode == 'more' ) {
 166+ // Drop the first element because it duplicates the last shown one
 167+ comments.shift();
 168+ len--;
 169+ }
168170 if ( len > limit ) {
169171 // Drop any elements past the limit. We do know there are more results now
170172 len = limit;

Status & tagging log