diff --git a/src/main/webapp/css/app.css b/src/main/webapp/css/app.css index ddca5aa6..9f034f0d 100644 --- a/src/main/webapp/css/app.css +++ b/src/main/webapp/css/app.css @@ -61,20 +61,6 @@ margin: 5px 0px 5px 0px; } -#feed-accordion .collapse { - -webkit-transition: none; - -moz-transition: none; - transition: none; -} - -#feed-accordion .accordion-group { - margin-bottom: 0px; - border: none; - -webkit-border-radius: none; - -moz-border-radius: none; - border-radius: 0px; -} - #feed-accordion .entry { border-bottom: 1px solid #CCCCCC; } @@ -85,12 +71,15 @@ margin-top: 80px; } -#feed-accordion .accordion-inner { - padding: 0px; -} - #feed-accordion .entry-heading { padding: 6px 0px; + display: block; + color: black; + cursor: pointer; +} + +#feed-accordion a.entry-heading:hover { + text-decoration: none; } #feed-accordion .entry-heading.open { @@ -101,17 +90,7 @@ background-color: #EBEBEB; } -#feed-accordion a.accordion-toggle { - color: black; - display: block; - padding: 0px; -} - -#feed-accordion a.accordion-toggle:hover { - text-decoration: none; -} - -#feed-accordion a.accordion-toggle .unread { +#feed-accordion .entry-heading.unread { font-weight: bold; } diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 068bb9c6..719a6768 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -7,8 +7,8 @@ module.run(function($rootScope) { }); }); -module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location, $route, - SubscriptionService) { +module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location, + $route, SubscriptionService) { $scope.$on('$routeChangeSuccess', function() { $scope.selectedType = $routeParams._type; @@ -51,7 +51,7 @@ module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location, } $scope.feedClicked = function(id) { - if($scope.selectedType == 'feed' && id == $scope.selectedId) { + if ($scope.selectedType == 'feed' && id == $scope.selectedId) { $route.reload(); } else { $location.path('/feeds/view/feed/' + id); @@ -59,10 +59,10 @@ module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location, }; $scope.categoryClicked = function(id) { - if($scope.selectedType == 'category' && id == $scope.selectedId) { + if ($scope.selectedType == 'category' && id == $scope.selectedId) { $route.reload(); } else { - $location.path('/feeds/view/category/' + id); + $location.path('/feeds/view/category/' + id); } }; @@ -102,7 +102,7 @@ module.controller('FeedListCtrl', function($scope, $routeParams, $http, $scope.limit = 20; $scope.busy = false; $scope.hasMore = true; - + $scope.refreshList = function() { if ($scope.settings.readingMode) { $scope.entryList = EntryService.get({ @@ -114,15 +114,15 @@ module.controller('FeedListCtrl', function($scope, $routeParams, $http, }); } }; - + $scope.loadMoreEntries = function() { - if(!$scope.hasMore) + if (!$scope.hasMore) return; if (!$scope.entryList || !$scope.entryList.entries) return; if ($scope.busy) return; - if (!$scope.settings.readingMode) + if (!$scope.settings.readingMode) return; $scope.busy = true; EntryService.get({ @@ -154,15 +154,20 @@ module.controller('FeedListCtrl', function($scope, $routeParams, $http, }); } }; - - $scope.isOpen = false - $scope.toggle = function(entry) { - if ($scope.current != entry) { - $scope.isOpen = true; - } else { - $scope.isOpen = !$scope.isOpen; - } - $scope.current = entry; + + $scope.isOpen = false; + $scope.entryClicked = function(entry, event) { + console.log('click !') $scope.mark(entry, true); + if (!event.ctrlKey && event.which != 2) { + event.preventDefault(); + event.stopPropagation(); + if ($scope.current != entry) { + $scope.isOpen = true; + } else { + $scope.isOpen = !$scope.isOpen; + } + $scope.current = entry; + } } }); diff --git a/src/main/webapp/templates/feeds.html b/src/main/webapp/templates/feeds.html index 32d423bb..dce59bac 100644 --- a/src/main/webapp/templates/feeds.html +++ b/src/main/webapp/templates/feeds.html @@ -4,25 +4,21 @@

{{entryList.name}}  »

-
- - - -
- {{entry.feedName}} - - {{entry.title}} {{entry.date}} -
-
-
-
-

- {{entry.title}} -

-
-
-
-
-
+
+
+ + {{entry.feedName}} + - {{entry.title}} {{entry.date}} + +
+
+

+ {{entry.title}} +

+
+
+
+
"{{entryList.name}}" has no unread items.
Loading data...