From 5f92a9583f4e86479377ec5261369cb516d67f96 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 21 May 2015 20:57:38 +0200 Subject: [PATCH] WoltLab/WCF/UI/TabMenu/Simple was improperly referring to jQuery --- .../files/js/WoltLab/WCF/UI/TabMenu/Simple.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js b/wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js index a9e10791d7..c6cde541aa 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js @@ -223,13 +223,13 @@ define(['Dictionary', 'DOM/Util', 'EventHandler'], function(Dictionary, DOMUtil, previous: oldTab, }); - if (this._isLegacy) { + if (this._isLegacy && typeof window.jQuery === 'function') { // simulate jQuery UI Tabs event - $(this._container).trigger('wcftabsbeforeactivate', { - newTab: $(tab), - oldTab: $(oldTab), - newPanel: $(newContent), - oldPanel: $(oldContent) + window.jQuery(this._container).trigger('wcftabsbeforeactivate', { + newTab: window.jQuery(tab), + oldTab: window.jQuery(oldTab), + newPanel: window.jQuery(newContent), + oldPanel: window.jQuery(oldContent) }); } } -- 2.20.1