Tabs aren't created unless a title is specified (fix from Nielius)

Issue #20.
This commit is contained in:
Fabrice Niessen 2016-01-18 19:49:15 +01:00
parent 254ebc80a7
commit a888cad011
1 changed files with 8 additions and 4 deletions

View File

@ -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) {