From 32868a6f87df771a6c537c2d8b6f433663f2aa53 Mon Sep 17 00:00:00 2001 From: Michael Miday Date: Tue, 15 Sep 2015 23:41:27 +0200 Subject: [ticket/12769] Fix responsive features --- phpBB/styles/prosilver/template/forum_fn.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'phpBB/styles/prosilver/template/forum_fn.js') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 8e5b257ba4..13a10c8cc0 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -362,13 +362,13 @@ function parseDocument($container) { /** * Adjust HTML code for IE8 and older versions */ - if (oldBrowser) { - // Fix .linklist.bulletin lists - $container - .find('ul.linklist.bulletin > li') - .filter(':first-child, .rightside:last-child') - .addClass('no-bulletin'); - } + // if (oldBrowser) { + // // Fix .linklist.bulletin lists + // $container + // .find('ul.linklist.bulletin > li') + // .filter(':first-child, .rightside:last-child') + // .addClass('no-bulletin'); + // } /** * Resize navigation (breadcrumbs) block to keep all links on same line @@ -489,7 +489,7 @@ function parseDocument($container) { $linksFirst = $linksNotSkip.not(filterLast), // The items that will be hidden first $linksLast = $linksNotSkip.filter(filterLast), // The items that will be hidden last persistent = $this.attr('id') === 'nav-main', // Does this list already have a menu (such as quick-links)? - html = '', + html = '', slack = 3; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occured. // Add a hidden drop-down menu to each links list (except those that already have one) @@ -578,8 +578,9 @@ function parseDocument($container) { $menuContents.prepend($clones1.addClass('clone clone-first').removeClass('leftside rightside')); if ($this.hasClass('post-buttons')) { - $('.button', $menuContents).removeClass('button icon-button'); - $('.responsive-menu-link', $menu).addClass('button icon-button').prepend(''); + $('.button', $menuContents).removeClass('button'); + $('.js-responsive-menu-link').addClass('button'); + $('.js-responsive-menu-link .icon').removeClass('fa-bars').addClass('fa-ellipsis-h'); } copied1 = true; } @@ -633,7 +634,7 @@ function parseDocument($container) { } if (!persistent) { - phpbb.registerDropdown($menu.find('a.responsive-menu-link'), $menu.find('.dropdown'), false); + phpbb.registerDropdown($menu.find('a.js-responsive-menu-link'), $menu.find('.dropdown'), false); } // If there are any images in the links list, run the check again after they have loaded -- cgit v1.2.1 From d50801a056e4bbced0d7ea855fbded9fb449bfe5 Mon Sep 17 00:00:00 2001 From: Michael Miday Date: Sun, 27 Sep 2015 11:35:26 +0200 Subject: [ticket/14202]Add missing sr-only classes PHPBB3-14202 --- phpBB/styles/prosilver/template/forum_fn.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'phpBB/styles/prosilver/template/forum_fn.js') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 13a10c8cc0..8902ae1f83 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -579,8 +579,10 @@ function parseDocument($container) { if ($this.hasClass('post-buttons')) { $('.button', $menuContents).removeClass('button'); - $('.js-responsive-menu-link').addClass('button'); + $('.sr-only', $menuContents).removeClass('sr-only'); + $('.js-responsive-menu-link').addClass('button').addClass('button-icon-only'); $('.js-responsive-menu-link .icon').removeClass('fa-bars').addClass('fa-ellipsis-h'); + } copied1 = true; } -- cgit v1.2.1 From 0244be6d75189ced7a3b9b4ccdeb5b30e20eb7e9 Mon Sep 17 00:00:00 2001 From: Michael Miday Date: Sun, 27 Sep 2015 21:22:30 +0200 Subject: [ticket/14202]Remove blank line PHPBB3-14202 --- phpBB/styles/prosilver/template/forum_fn.js | 1 - 1 file changed, 1 deletion(-) (limited to 'phpBB/styles/prosilver/template/forum_fn.js') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 8902ae1f83..9dfb3fc5f8 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -582,7 +582,6 @@ function parseDocument($container) { $('.sr-only', $menuContents).removeClass('sr-only'); $('.js-responsive-menu-link').addClass('button').addClass('button-icon-only'); $('.js-responsive-menu-link .icon').removeClass('fa-bars').addClass('fa-ellipsis-h'); - } copied1 = true; } -- cgit v1.2.1 From 9da14c9b241387982fed9aa2436162c63fc25d1c Mon Sep 17 00:00:00 2001 From: Michael Miday Date: Fri, 25 Sep 2015 17:25:10 +0200 Subject: [ticket/14199]Add aria-hidden to all icons PHPBB3-14199 --- phpBB/styles/prosilver/template/forum_fn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/styles/prosilver/template/forum_fn.js') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 9dfb3fc5f8..c6f13df5c2 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -489,7 +489,7 @@ function parseDocument($container) { $linksFirst = $linksNotSkip.not(filterLast), // The items that will be hidden first $linksLast = $linksNotSkip.filter(filterLast), // The items that will be hidden last persistent = $this.attr('id') === 'nav-main', // Does this list already have a menu (such as quick-links)? - html = '', + html = '', slack = 3; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occured. // Add a hidden drop-down menu to each links list (except those that already have one) -- cgit v1.2.1 From 72f7f6eff92346c3584da88c6d6ae750bdfd9412 Mon Sep 17 00:00:00 2001 From: Rishabh04-02 Date: Thu, 16 Mar 2017 20:34:38 +0530 Subject: [ticket/15125] Remove the function play_qt_file in forum_fn.js PHPBB3-15125 --- phpBB/styles/prosilver/template/forum_fn.js | 31 ----------------------------- 1 file changed, 31 deletions(-) (limited to 'phpBB/styles/prosilver/template/forum_fn.js') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index f1d423d269..3f59709ac6 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -194,37 +194,6 @@ function selectCode(a) { } } -/** -* Play quicktime file by determining it's width/height -* from the displayed rectangle area -*/ -function play_qt_file(obj) { - 'use strict'; - - var rectangle = obj.GetRectangle(); - var width, height; - - if (rectangle) { - rectangle = rectangle.split(','); - var x1 = parseInt(rectangle[0], 10); - var x2 = parseInt(rectangle[2], 10); - var y1 = parseInt(rectangle[1], 10); - var y2 = parseInt(rectangle[3], 10); - - width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1; - height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1; - } else { - width = 200; - height = 0; - } - - obj.width = width; - obj.height = height + 16; - - obj.SetControllerVisible(true); - obj.Play(); -} - var inAutocomplete = false; var lastKeyEntered = ''; -- cgit v1.2.1