mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
trigger server refresh with keyboard shortcut too
This commit is contained in:
@@ -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
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user