(js) Close sidenav when searching on small screen

This commit is contained in:
Francis Lachapelle
2016-01-18 14:05:33 -05:00
parent 20adc2d821
commit 3fa0c83626
@@ -55,6 +55,9 @@
function showAdvancedSearch(path) {
vm.showingAdvancedSearch = true;
vm.search.mailbox = path;
// Close sidenav on small devices
if ($mdMedia('xs'))
$mdSidenav('left').close();
}
function hideAdvancedSearch() {