diff options
Diffstat (limited to 'extensions/Vector/modules/ext.vector.simpleSearch.js')
-rw-r--r-- | extensions/Vector/modules/ext.vector.simpleSearch.js | 8 |
1 files changed, 8 insertions, 0 deletions
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': { |