From edd9c0e06405a08efb1e2153b21f71beb1ea4294 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Thu, 29 May 2014 18:07:27 -0700 Subject: [ticket/12553] Open the notification dropdown to the left. PHPBB3-12553 --- phpBB/styles/prosilver/template/forum_fn.js | 33 ---------------------- phpBB/styles/prosilver/template/navbar_header.html | 4 +-- .../styles/subsilver2/template/overall_header.html | 9 ++++-- 3 files changed, 8 insertions(+), 38 deletions(-) (limited to 'phpBB/styles') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index fa838fde19..9d4417154f 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -367,39 +367,6 @@ function parse_document(container) jumpto($(this)); }); - /** - * Dropdowns - */ - container.find('.dropdown-container').each(function() { - var $this = $(this), - trigger = $this.find('.dropdown-trigger:first'), - contents = $this.find('.dropdown'), - options = { - direction: 'auto', - verticalDirection: 'auto' - }, - data; - - if (!trigger.length) { - data = $this.attr('data-dropdown-trigger'); - trigger = data ? $this.children(data) : $this.children('a:first'); - } - - if (!contents.length) { - data = $this.attr('data-dropdown-contents'); - contents = data ? $this.children(data) : $this.children('div:first'); - } - - if (!trigger.length || !contents.length) return; - - if ($this.hasClass('dropdown-up')) options.verticalDirection = 'up'; - if ($this.hasClass('dropdown-down')) options.verticalDirection = 'down'; - if ($this.hasClass('dropdown-left')) options.direction = 'left'; - if ($this.hasClass('dropdown-right')) options.direction = 'right'; - - phpbb.registerDropdown(trigger, contents, options); - }); - /** * Adjust HTML code for IE8 and older versions */ diff --git a/phpBB/styles/prosilver/template/navbar_header.html b/phpBB/styles/prosilver/template/navbar_header.html index 804fa5b2aa..1eb120ef3e 100644 --- a/phpBB/styles/prosilver/template/navbar_header.html +++ b/phpBB/styles/prosilver/template/navbar_header.html @@ -17,8 +17,8 @@