(js) Fix automatic close of sidenav
parent
6a661264f6
commit
e5f9f3383a
|
@ -43,7 +43,7 @@
|
|||
this.go = function(module, form) {
|
||||
if (form.$valid) {
|
||||
// Close sidenav on small devices
|
||||
if ($mdMedia('xs'))
|
||||
if (!$mdMedia('gt-sm'))
|
||||
$mdSidenav('left').close();
|
||||
$state.go('preferences.' + module);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue