r114570 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114569‎ | r114570 | r114571 >
Date:18:56, 28 March 2012
Author:raindrift
Status:deferred
Tags:
Comment:
always set the creation_date_pretty property, even if there's no user creation date
Modified paths:
  • /trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js
@@ -21,6 +21,8 @@
2222 if( article.get( 'user_creation_date' ) ) {
2323 var user_creation_date_parsed = Date.parseExact( article.get( 'user_creation_date' ), 'yyyyMMddHHmmss' );
2424 article.set( 'user_creation_date_pretty', user_creation_date_parsed.toString( gM( 'pagetriage-user-creation-dateformat' ) ) );
 25+ } else {
 26+ article.set( 'user_creation_date_pretty', '');
2527 }
2628
2729 var userName = article.get( 'user_name' );

Status & tagging log