Explorar el Código

auto close sidebar on search

tags/1.0.0
Robin Thoni hace 8 años
padre
commit
42fbd919ee
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      app/controllers/sidebar.controller.js

+ 3
- 2
app/controllers/sidebar.controller.js Ver fichero

@@ -3,8 +3,8 @@
3 3
  */
4 4
 
5 5
 angular.module('app')
6
-    .controller('SideBarController', ['$scope', '$state', 'DataShareBusiness', '$mdDialog',
7
-        function($scope, $state, DataShareBusiness, $mdDialog) {
6
+    .controller('SideBarController', ['$scope', '$state', 'DataShareBusiness', '$mdDialog', '$mdSidenav',
7
+        function($scope, $state, DataShareBusiness, $mdDialog, $mdSidenav) {
8 8
 
9 9
             $scope.DataShareBusiness = DataShareBusiness;
10 10
 
@@ -52,6 +52,7 @@ angular.module('app')
52 52
             $scope.goTo = function(group)
53 53
             {
54 54
                 if (group != null) {
55
+                    $mdSidenav('left').toggle();
55 56
                     $scope.Search.value = "";
56 57
                     DataShareBusiness.goToGroup(group);
57 58
                 }

Loading…
Cancelar
Guardar