diff --git a/public/app.js b/public/app.js index 8a0981d..3de7abf 100644 --- a/public/app.js +++ b/public/app.js @@ -900,7 +900,7 @@ var ListCtrl = function ($scope, $rootScope, $routeParams, $location, Class, Cla $scope.reset = function () { $scope.current_page = 1; - $scope.items = []; + $scope.items = []; $scope.search(); }; $scope.$on('listReset', function(){ $scope.reset()}); @@ -956,6 +956,11 @@ var ListCtrl = function ($scope, $rootScope, $routeParams, $location, Class, Cla } ); }; + + $rootScope.menu_item_click = function() { + $scope.item.values = {}; + $scope.reset(); + } $scope.reset(); }; @@ -969,7 +974,6 @@ var RootCtrl = function ($scope, $rootScope, $interval, Auth, Url, $location, Pl }); - $rootScope.getLoggedInData = function(){ $rootScope.logout = function(){ Auth.logout.save( diff --git a/public/views/index.html b/public/views/index.html index 5f35a7e..86545ec 100644 --- a/public/views/index.html +++ b/public/views/index.html @@ -76,7 +76,7 @@

{{block.title}}