mark the entry as read when using 'b' or 'v'

This commit is contained in:
Athou
2013-06-08 07:52:04 +02:00
parent 0f90811e5f
commit 84db458fd1

View File

@@ -933,11 +933,14 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
});
Mousetrap.bind('v', function(e) {
if ($scope.current) {
$scope.mark($scope.current, true);
window.open($scope.current.url);
}
});
Mousetrap.bind('b', function(e) {
if ($scope.current) {
$scope.mark($scope.current, true);
var url = $scope.current.url;
var a = document.createElement('a');
a.href = url;