r98110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98109‎ | r98110 | r98111 >
Date:05:08, 26 September 2011
Author:santhosh
Status:ok
Tags:
Comment:
Show Decimal mark in ArticleFeedback rating as per the language rules. Ref Bug 31126
Modified paths:
  • /trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js
@@ -422,7 +422,7 @@
423423 var average = Math.round( ( rating.total / rating.count ) * 10 ) / 10;
424424 $(this)
425425 .find( '.articleFeedback-rating-average' )
426 - .text( average + ( average % 1 === 0 ? '.0' : '' ) )
 426+ .text( mw.language.convertNumber( average + ( average % 1 === 0 ? '.0' : '' ) , false ) )
427427 .end()
428428 .find( '.articleFeedback-rating-meter div' )
429429 .css( 'width', Math.round( average * 21 ) + 'px' )

Follow-up revisions

RevisionCommit summaryAuthorDate
r98766REL1_18 MFT r98110, r98208, r98278, r98301reedy14:18, 3 October 2011
r987771.18wmf1: MFT r98054, r98110, r98111, r98113, r98253, r98297, r98619, r98635catrope17:26, 3 October 2011

Status & tagging log