From 637c41f2cec4beb33c41a6d3a6402bdf23cc812f Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 11 May 2013 12:55:37 +0200 Subject: [PATCH] scroll to entry on click in expanded view (#76) --- src/main/webapp/js/controllers.js | 6 ++++++ src/main/webapp/templates/feeds.view.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 10d342fc..b170a106 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -578,6 +578,12 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer $scope.mark(entry, true); } }; + $scope.bodyClicked = function(entry, event) { + if (SettingsService.settings.viewMode == 'expanded' && $scope.current != entry) { + $scope.entryClicked(entry, event); + } + }; + $scope.noop = function(event) { if (!event.ctrlKey && event.which != 2) { diff --git a/src/main/webapp/templates/feeds.view.html b/src/main/webapp/templates/feeds.view.html index 23737109..95af6bee 100644 --- a/src/main/webapp/templates/feeds.view.html +++ b/src/main/webapp/templates/feeds.view.html @@ -22,7 +22,7 @@ -
+