Merge "mw.widgets.TitleInputWidget: Allow limiting to main namespace, too"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 22 Jul 2015 15:15:53 +0000 (15:15 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 22 Jul 2015 15:15:53 +0000 (15:15 +0000)
resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js

index bee5920..a9e4384 100644 (file)
@@ -38,7 +38,7 @@
 
                // Properties
                this.limit = config.limit || 10;
-               this.namespace = config.namespace || null;
+               this.namespace = config.namespace !== undefined ? config.namespace : null;
                this.relative = config.relative !== undefined ? config.relative : true;
                this.showRedirectTargets = config.showRedirectTargets !== false;
                this.showRedlink = !!config.showRedlink;