Javascript workaround for mobile nag bar

Cette révision appartient à :
Peter McAtominey 2013-07-31 00:46:27 +02:00
Parent 7d984a2cce
révision ab709b924d
1 fichiers modifiés avec 13 ajouts et 0 suppressions

Voir le fichier

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