From 1c9401a82ed4fcb62294a2584417a528c9525c97 Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 8 Jun 2013 21:46:40 +0200 Subject: [PATCH] trigger server refresh with keyboard shortcut too --- src/main/webapp/js/controllers.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 94968ec8..9a944f68 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -482,11 +482,6 @@ function($scope, $http, $state, $stateParams, $route, $location, }; $scope.refresh = function() { - if($stateParams._type == 'feed'){ - FeedService.refresh({ - id : $stateParams._id - }); - } $scope.$emit('emitReload'); }; @@ -998,6 +993,12 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer $scope.busy = false; $scope.hasMore = true; $scope.loadMoreEntries(); + + if ($scope.selectedType == 'feed'){ + FeedService.refresh({ + id : $stateParams._id + }); + } }); }]);