forked from Archives/Athou_commafeed
keep unread button
This commit is contained in:
@@ -141,6 +141,16 @@
|
|||||||
margin-top: 5px;
|
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 */
|
||||||
.admin .users-table {
|
.admin .users-table {
|
||||||
height: 400px;
|
height: 400px;
|
||||||
|
|||||||
@@ -323,16 +323,20 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
|
|||||||
|
|
||||||
$scope.isOpen = false;
|
$scope.isOpen = false;
|
||||||
$scope.entryClicked = function(entry, event) {
|
$scope.entryClicked = function(entry, event) {
|
||||||
$scope.mark(entry, true);
|
|
||||||
if (!event.ctrlKey && event.which != 2) {
|
if (!event.ctrlKey && event.which != 2) {
|
||||||
if ($scope.current != entry) {
|
if ($scope.current != entry) {
|
||||||
$scope.isOpen = true;
|
$scope.isOpen = true;
|
||||||
} else {
|
} else {
|
||||||
$scope.isOpen = !$scope.isOpen;
|
$scope.isOpen = !$scope.isOpen;
|
||||||
}
|
}
|
||||||
|
if($scope.isOpen) {
|
||||||
|
$scope.mark(entry, true);
|
||||||
|
}
|
||||||
$scope.current = entry;
|
$scope.current = entry;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
} else {
|
||||||
|
$scope.mark(entry, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,12 @@
|
|||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div ng-bind-html-unsafe="entry.content"></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>
|
</div>
|
||||||
<div class="no-entries" ng-show="!message && name && entries.length == 0 && !busy">"{{name}}" has no unread items.</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