Mailing List Archive

SVN: [114792] trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext. pageTriage.listControlNav.js
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114792

Revision: 114792
Author: raindrift
Date: 2012-04-07 00:52:49 +0000 (Sat, 07 Apr 2012)
Log Message:
-----------
little type conversion bug that messed up the status display sometimes

Modified Paths:
--------------
trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.listControlNav.js

Modified: trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.listControlNav.js
===================================================================
--- trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.listControlNav.js 2012-04-07 00:37:45 UTC (rev 114791)
+++ trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.listControlNav.js 2012-04-07 00:52:49 UTC (rev 114792)
@@ -223,7 +223,7 @@
if( this.model.getParam( 'namespace' ) > -1 ) { // still true for ns 0
var ns = this.model.getParam( 'namespace' );
var nsText;
- if( ns === 0 ) {
+ if( Number(ns) === 0 ) {
nsText = gM( 'pagetriage-filter-ns-article' );
} else {
nsText = mw.config.get( 'wgFormattedNamespaces' )[ns];


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs