From c4372dd38a4d109b4f3881ea63b667e33adbe503 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 26 Apr 2012 18:23:31 +0200 Subject: Update to MediaWiki 1.18.3 --- extensions/Vector/modules/ext.vector.simpleSearch.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extensions/Vector/modules/ext.vector.simpleSearch.js') diff --git a/extensions/Vector/modules/ext.vector.simpleSearch.js b/extensions/Vector/modules/ext.vector.simpleSearch.js index 01ef14ea..8af1f9a1 100644 --- a/extensions/Vector/modules/ext.vector.simpleSearch.js +++ b/extensions/Vector/modules/ext.vector.simpleSearch.js @@ -2,6 +2,14 @@ jQuery( document ).ready( function( $ ) { + // Ensure that the thing is actually present! + if ($('#simpleSearch').length == 0) { + // Don't try to set anything up if simpleSearch is disabled sitewide. + // The loader code loads us if the option is present, even if we're + // not actually enabled (anymore). + return; + } + // Compatibility map var map = { 'browsers': { -- cgit v1.2.3-54-g00ecf