AVE.CMS v3.28
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
715 B

$(document).ready(function() {
$('#debug_btn').on('click', function() {
$bar = $('#debug_bar');
if ($bar.css('display') == 'none') {
$(document.body).css('overflow', 'hidden');
$bar.show();
} else {
$(document.body).css('overflow', '');
$bar.hide();
}
});
$('.debug_tabs > li').on('click', function() {
$('.debug_tabs > li').removeClass('selected');
$('.debug_tab').hide();
$(this).addClass('selected');
$('#'+this.id+'-cont').show();
if($.cookie){
$.cookie('__debug_bar', this.id, {expires: 7, path: '/'});
}
});
if($.cookie){
var id = $.cookie('__debug_bar');
var tab = $('.debug_tabs > li#'+id);
if(tab.length > 0){
tab.click();
}
}
}); //document.ready