From 84db458fd1e3f25349859b47262cf44273206ffd Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 8 Jun 2013 07:52:04 +0200 Subject: [PATCH] mark the entry as read when using 'b' or 'v' --- src/main/webapp/js/controllers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index e0dbb866..35c63419 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -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;