From 2002103baac593e9193d9501dc0e1b1e9e28446a Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Fri, 6 Feb 2015 15:51:23 +0100 Subject: Doc: Update the online documentation template This change fixes a number of issues in the online template: - Missing vertical line after the login icon in the header - Update header, footer links and appearance - Adjust alternate background color of table cells to improve readability - Fix style of cookie notification in the html header - Add The Qt Company logo in the footer - Adjust list item marker image - Improve responsiveness of footer Change-Id: I77147b4b4161d6001c095a4b67e15552132100e6 Reviewed-by: Martin Smith Reviewed-by: Leena Miettinen --- doc/global/template/scripts/extras.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/global/template/scripts') diff --git a/doc/global/template/scripts/extras.js b/doc/global/template/scripts/extras.js index cb1102d493..409215f2d8 100644 --- a/doc/global/template/scripts/extras.js +++ b/doc/global/template/scripts/extras.js @@ -1,13 +1,14 @@ var vOffset = 65; $(function () { - $('a[href*=#]:not([href=#])').on('click', function () { + $('a[href*=#]:not([href=#])').on('click', function (e) { + if (e.which == 2) + return true; var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); if (target.length) { setTimeout(function () { $('html, body').animate({scrollTop: target.offset().top - vOffset}, 50);}, 50); - // return false; } }); }); -- cgit v1.2.3