diff --git a/public_html/media/css/post-upload.css b/public_html/media/css/post-upload.css index a70dd3d0..aad84e29 100644 --- a/public_html/media/css/post-upload.css +++ b/public_html/media/css/post-upload.css @@ -8,10 +8,10 @@ float: left; } -.tab { +.tab-content { margin-bottom: 1em; } -.tab.url { +.tab-content.url { display: none; } diff --git a/public_html/media/js/post-upload.js b/public_html/media/js/post-upload.js index c793ed45..9c74fdd2 100644 --- a/public_html/media/js/post-upload.js +++ b/public_html/media/js/post-upload.js @@ -6,8 +6,8 @@ $(function() var className = $(this).parents('li').attr('class').replace('selected', '').replace(/^\s+|\s+$/, ''); $('.tabs li').removeClass('selected'); $(this).parents('li').addClass('selected'); - $('.tab').hide(); - $('.tab.' + className).show(); + $('.tab-content').hide(); + $('.tab-content.' + className).show(); }); var tags = []; diff --git a/src/Views/index-help.phtml b/src/Views/index-help.phtml index 59cbee89..d231edb7 100644 --- a/src/Views/index-help.phtml +++ b/src/Views/index-help.phtml @@ -4,9 +4,10 @@ LayoutHelper::addStylesheet('index-help.css'); $tabs = $this->config->help->subTitles; $firstTab = !empty($tabs) ? array_keys($tabs)[0] : null; +$showTabs = count($tabs) > 1; ?> - 1): ?> + + +