WoltLab/WCF/UI/TabMenu/Simple was improperly referring to jQuery
authorAlexander Ebert <ebert@woltlab.com>
Thu, 21 May 2015 18:57:38 +0000 (20:57 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 21 May 2015 18:57:38 +0000 (20:57 +0200)
wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js

index a9e10791d7a9eb76d0c4d8a761c8a0bf586e7070..c6cde541aa100049e9f4a80c01e8c37f0a3fdb7f 100644 (file)
@@ -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)
                                        });
                                }
                        }