2013-06-12 00:28:29 +02:00
|
|
|
$(function() {
|
|
|
|
$('.aj-nav').click(function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
$(this).parent().siblings().find('ul').slideUp();
|
|
|
|
$(this).next().slideToggle();
|
|
|
|
});
|
|
|
|
|
|
|
|
// Bootstrap Table Class
|
|
|
|
$('table').addClass('table');
|
2013-07-31 00:46:27 +02:00
|
|
|
|
|
|
|
var mobileNavWorkaround = function() {
|
|
|
|
if($(window).width()< 768) {
|
|
|
|
$('#sub-nav-collapse').css('height', '0px');
|
|
|
|
} else {
|
|
|
|
$('#sub-nav-collapse').css('height', 'auto');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$(window).resize(function() {
|
|
|
|
mobileNavWorkaround();
|
|
|
|
});
|
|
|
|
mobileNavWorkaround();
|
2013-06-12 00:28:29 +02:00
|
|
|
});
|