SAAS-985 - Port sandwich menu to showbuilder branch

This commit is contained in:
Duncan Sommerville 2015-08-04 16:37:45 -04:00
parent 4200f56265
commit 57c1d74286
5 changed files with 72 additions and 19 deletions

View file

@ -186,3 +186,11 @@ function getUsabilityHint() {
}
});
}
$(document).mouseup(function (e) {
var mb = $("#menu-btn"),
w = $(window).width();
if (!mb.is(e.target) && mb.has(e.target).length === 0 && w <= 970) {
$('#nav .responsive-menu').slideUp();
}
});