forked from Archives/Athou_commafeed
manually set position
This commit is contained in:
@@ -72,6 +72,7 @@ public class FeedSubscriptionService {
|
||||
newSubscription = true;
|
||||
}
|
||||
sub.setCategory(category);
|
||||
sub.setPosition(0);
|
||||
sub.setTitle(FeedUtils.truncate(title, 128));
|
||||
feedSubscriptionDAO.saveOrUpdate(sub);
|
||||
|
||||
|
||||
@@ -201,6 +201,7 @@ public class CategoryREST extends AbstractResourceREST {
|
||||
FeedCategory cat = new FeedCategory();
|
||||
cat.setName(req.getName());
|
||||
cat.setUser(getUser());
|
||||
cat.setPosition(0);
|
||||
String parentId = req.getParentId();
|
||||
if (parentId != null && !ALL.equals(parentId)) {
|
||||
FeedCategory parent = new FeedCategory();
|
||||
|
||||
@@ -68,6 +68,7 @@ details.feed_details=Feed details
|
||||
details.url=URL
|
||||
details.name=Name
|
||||
details.category=Category
|
||||
details.position=Position
|
||||
details.last_refresh=Last refresh
|
||||
details.next_refresh=Next refresh
|
||||
details.queued_for_refresh=Queued for refresh
|
||||
|
||||
@@ -337,6 +337,7 @@ module.controller('FeedDetailsCtrl', ['$scope', '$state', '$stateParams', 'FeedS
|
||||
FeedService.modify({
|
||||
id : sub.id,
|
||||
name : sub.name,
|
||||
position: sub.position,
|
||||
categoryId : sub.categoryId
|
||||
}, function() {
|
||||
CategoryService.init();
|
||||
@@ -427,6 +428,7 @@ module.controller('CategoryDetailsCtrl', ['$scope', '$state', '$stateParams', 'F
|
||||
CategoryService.modify({
|
||||
id : cat.id,
|
||||
name : cat.name,
|
||||
position: cat.position,
|
||||
parentId : cat.parentId
|
||||
}, function() {
|
||||
CategoryService.init();
|
||||
|
||||
@@ -20,6 +20,13 @@
|
||||
<span class="help-block" ng-show="!form.category.$valid">${global.required}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">${details.position}</label>
|
||||
<div class="controls">
|
||||
<input type="number" min="0" ng-model="category.position" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">${details.feed_url}</label>
|
||||
|
||||
@@ -27,6 +27,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">${details.position}</label>
|
||||
<div class="controls">
|
||||
<input type="number" min="0" ng-model="sub.position" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">${details.last_refresh}</label>
|
||||
<div class="controls horizontal-align">
|
||||
|
||||
Reference in New Issue
Block a user