Javascript workaround for mobile nag bar

This commit is contained in:
Peter McAtominey 2013-07-30 23:46:27 +01:00
parent 7d984a2cce
commit ab709b924d

View File

@ -7,4 +7,17 @@ $(function() {
// Bootstrap Table Class // Bootstrap Table Class
$('table').addClass('table'); $('table').addClass('table');
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();
}); });