keep unread button

This commit is contained in:
Athou
2013-04-07 10:41:55 +02:00
parent 3b070307bb
commit 0e80d4ec56
3 changed files with 21 additions and 1 deletions

View File

@@ -141,6 +141,16 @@
margin-top: 5px;
}
#feed-accordion .entry-buttons {
background-color: #fafafa;
padding: 3px 0px;
border-top: 1px solid #ebebeb;
}
#feed-accordion .entry-buttons label{
margin-bottom: 0px
}
/* admin */
.admin .users-table {
height: 400px;

View File

@@ -323,16 +323,20 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
$scope.isOpen = false;
$scope.entryClicked = function(entry, event) {
$scope.mark(entry, true);
if (!event.ctrlKey && event.which != 2) {
if ($scope.current != entry) {
$scope.isOpen = true;
} else {
$scope.isOpen = !$scope.isOpen;
}
if($scope.isOpen) {
$scope.mark(entry, true);
}
$scope.current = entry;
event.preventDefault();
event.stopPropagation();
} else {
$scope.mark(entry, true);
}
};

View File

@@ -20,6 +20,12 @@
</h4>
</div>
<div ng-bind-html-unsafe="entry.content"></div>
<div class="entry-buttons form-horizontal">
<label class="checkbox">
<input type="checkbox" value="{{!entry.read}}" ng-click="mark(entry, !entry.read)"></input>
Keep unread
</label>
</div>
</div>
</div>
<div class="no-entries" ng-show="!message && name && entries.length == 0 && !busy">"{{name}}" has no unread items.</div>