From: Alexander Ebert Date: Thu, 21 May 2015 18:57:38 +0000 (+0200) Subject: WoltLab/WCF/UI/TabMenu/Simple was improperly referring to jQuery X-Git-Tag: 3.0.0_Beta_1~2364 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f92a9583f4e86479377ec5261369cb516d67f96;p=GitHub%2FWoltLab%2FWCF.git WoltLab/WCF/UI/TabMenu/Simple was improperly referring to jQuery --- 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) }); } }