forked from Archives/Athou_commafeed
keep unread button
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user