r87735 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87734‎ | r87735 | r87736 >
Date:17:00, 9 May 2011
Author:tparscal
Status:ok
Tags:
Comment:
Smaxage should be 0 when userrating=1
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
@@ -340,7 +340,7 @@
341341 'afanontoken': userrating ? mw.user.id() : '',
342342 'afuserrating': Number( userrating ),
343343 'maxage': 0,
344 - 'smaxage': mw.config.get( 'wgArticleFeedbackSMaxage' )
 344+ 'smaxage': userrating ? 0 : mw.config.get( 'wgArticleFeedbackSMaxage' )
345345 },
346346 'success': function( data ) {
347347 var context = this;

Status & tagging log