From a888cad011a7169023b1d7fe9052824fac1b0633 Mon Sep 17 00:00:00 2001 From: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")> Date: Mon, 18 Jan 2016 19:49:15 +0100 Subject: [PATCH] Tabs aren't created unless a title is specified (fix from Nielius) Issue #20. --- styles/bigblow/js/bigblow.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/styles/bigblow/js/bigblow.js b/styles/bigblow/js/bigblow.js index 58f22d9..b8ea8c6 100644 --- a/styles/bigblow/js/bigblow.js +++ b/styles/bigblow/js/bigblow.js @@ -1,7 +1,6 @@ - // bigblow.js --- BigBlow JS file // -// Copyright (C) 2011-2014 All Right Reserved, Fabrice Niessen +// Copyright (C) 2011-2016 All Right Reserved, Fabrice Niessen // // This file is free software: you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -93,8 +92,13 @@ function tabifySections() { tabs.append(html); } - // insert tabs menu after title (`h1') - $('.title').after(tabs); + // insert tabs menu after title (`h1'), or at the beginning of the content + if($('.title').length !== 0) { + $('.title').after(tabs); + } + else { + $('#content').prepend(tabs); + } } function selectTabAndScroll(href) {