trigger server refresh with keyboard shortcut too

This commit is contained in:
Athou
2013-06-08 21:46:40 +02:00
parent fe0cc1d439
commit 1c9401a82e

View File

@@ -482,11 +482,6 @@ function($scope, $http, $state, $stateParams, $route, $location,
}; };
$scope.refresh = function() { $scope.refresh = function() {
if($stateParams._type == 'feed'){
FeedService.refresh({
id : $stateParams._id
});
}
$scope.$emit('emitReload'); $scope.$emit('emitReload');
}; };
@@ -998,6 +993,12 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
$scope.busy = false; $scope.busy = false;
$scope.hasMore = true; $scope.hasMore = true;
$scope.loadMoreEntries(); $scope.loadMoreEntries();
if ($scope.selectedType == 'feed'){
FeedService.refresh({
id : $stateParams._id
});
}
}); });
}]); }]);