From 78c1f6cfcb8038dc61db96249515851baeda5526 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 18 Aug 2011 20:20:25 +0200 Subject: [PATCH] Removed fancy effects for sub tabs --- wcfsetup/install/files/js/WCF.js | 42 -------------------------------- 1 file changed, 42 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 2e60e8642e..fb341ca6bc 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1281,48 +1281,6 @@ WCF.TabMenu = { } }; -WCF.Menu = function() { this.init(); }; -WCF.Menu.prototype = { - init: function() { - $('.scrollableMenuContainer').each(function(index, container) { - var $container = $(container); - var $categoryName = $container.data('categoryName'); - - var $containerDimensions = $container.getDimensions('outer'); - var $menuItems = $container.find('div.menuItems'); - - if ($menuItems.length) { - var $items = $container.find('div.menuItems > div'); - - if ($items.length) { - var $itemDimensions = $($items[0]).getDimensions(); - $items.css({ width: $itemDimensions.width + 'px' }); - - $menuItems.addClass('menuItemsJS'); - $(container).css({ width: $containerDimensions.width + 'px' }).scrollable({ - items: '#' + $categoryName + '-items', - onBeforeSeek: function(event, index) { - var $item = this.getItems()[index]; - var $dimensions = $($item).getDimensions('outer'); - - $($item).parent().animate({ - height: $dimensions.height + 'px' - }, { - queue: false, - duration: 400 - }); - }, - touch: false - }).navigator({ - history: true, - navi: '#' + $categoryName + '-categories' - }); - } - } - }); - } -}; - /** * Templates that may be fetched more than once with different variables. Based upon ideas from Prototype's template * -- 2.20.1