From c345140f63f0c6fb4b9010266681f899dbdd8fe3 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 7 Jan 2011 21:07:08 +0000 Subject: [PATCH] WikiEditor: (bug 26621) References button was shown in all namespaces while it's only supposed to show in non-talk namespaces. Regression in r74114 --- modules/ext.wikiEditor.dialogs.js | 1 + modules/ext.wikiEditor.toolbar.js | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/ext.wikiEditor.dialogs.js b/modules/ext.wikiEditor.dialogs.js index 2323cb08..33dd8344 100644 --- a/modules/ext.wikiEditor.dialogs.js +++ b/modules/ext.wikiEditor.dialogs.js @@ -30,6 +30,7 @@ $( document ).ready( function() { }, 'reference': { 'labelMsg': 'wikieditor-toolbar-tool-reference', + 'filters': [ 'body.ns-subject' ], 'type': 'button', 'icon': 'insert-reference.png', 'offset': [2, -1798], diff --git a/modules/ext.wikiEditor.toolbar.js b/modules/ext.wikiEditor.toolbar.js index 123a4744..92e6a375 100644 --- a/modules/ext.wikiEditor.toolbar.js +++ b/modules/ext.wikiEditor.toolbar.js @@ -162,6 +162,7 @@ $( document ).ready( function() { }, 'reference': { 'labelMsg': 'wikieditor-toolbar-tool-reference', + 'filters': [ 'body.ns-subject' ], 'type': 'button', 'offset': [2, -1798], 'icon': 'insert-reference.png',