bootstrapify common tabs and make show aside/tabs buttons only appear if there is something to show

This commit is contained in:
marijus
2014-03-19 09:43:23 +01:00
parent 8c177fbc4b
commit 20d47c4478
7 changed files with 41 additions and 40 deletions

View File

@@ -22,11 +22,24 @@ function cmtBbClose(comment, id) {
$(document).ready(function() {
$('[data-toggle=offcanvas]').click(function() {
$('#expand-aside').click(function() {
$('#expand-aside-icon').toggleClass('icon-circle-arrow-right').toggleClass('icon-circle-arrow-left');
$('main').toggleClass('region_1-on');
$('html, body').animate({ scrollTop: position });
});
if ($('aside').html().length == 0) {
$('#expand-aside').hide();
}
$('#expand-tabs').click(function() {
$('#expand-tabs-icon').toggleClass('icon-circle-arrow-down').toggleClass('icon-circle-arrow-up');
});
if($('#tabs-collapse-1').length == 0) {
$('#expand-tabs').hide();
}
$('.group-edit-icon').hover(
function() {
$(this).css('opacity','1.0');},