diff --git a/js/menu-resizer.js b/js/menu-resizer.js index 31a50c069e..14141446a0 100644 --- a/js/menu-resizer.js +++ b/js/menu-resizer.js @@ -26,54 +26,52 @@ self.widthCalculator = widthCalculator; var windowWidth = $(window).width(); - if (windowWidth < 768) { - // Sets the image for the left and right scroll indicator - $(PMA_getImage('b_left.png').toString()).prependTo($('.scrollindicator--left')); - $(PMA_getImage('b_right.png').toString()).prependTo($('.scrollindicator--right')); + // Sets the image for the left and right scroll indicator + $(PMA_getImage('b_left.png').toString()).prependTo($('.scrollindicator--left')); + $(PMA_getImage('b_right.png').toString()).prependTo($('.scrollindicator--right')); - // Set the width of the navigation bar without scroll indicator - $('.navigationbar').css({'width': widthCalculator.call($container) - 60}); + // Set the width of the navigation bar without scroll indicator + $('.navigationbar').css({'width': widthCalculator.call($container) - 60}); - // Scroll the navigation bar on click - $('.scrollindicator--right') - .click(function () { - $('.navigationbar').scrollLeft($('.navigationbar').scrollLeft() + 70); - }); - $('.scrollindicator--left') - .click(function () { - $('.navigationbar').scrollLeft($('.navigationbar').scrollLeft() - 70); - }); - } else { - // create submenu container - var link = $('', {href: '#', 'class': 'tab nowrap'}) - .text(PMA_messages.strMore) - .on('click', false); // same as event.preventDefault() - var img = $container.find('li img'); - if (img.length) { - $(PMA_getImage('b_more.png').toString()).prependTo(link); - } - var $submenu = $('
  • ', {'class': 'submenu'}) - .append(link) - .append($('