(js) Automatically close sidenav on small devices

This commit is contained in:
Francis Lachapelle committed 2015-12-18 11:43:05 -05:00
1 parent 530e7a9d99
commit 80533a6f9a
2 files changed
+6 -3

No files matched your search

@@ -31,7 +31,7 @@
vm.editMode = false;
AddressBook.$query.value = '';
// Close sidenav on small devices
if ($mdMedia('sm'))
if ($mdMedia('xs'))
$mdSidenav('left').close();
$state.go('app.addressbook', {addressbookId: folder.id});
}