mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
preselect All if no category is set, and prevent setting a parent category to itself
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<label class="control-label">Parent category</label>
|
||||
<div class="controls">
|
||||
<select name="category" class="input-block-level" ng-model="category.parentId"
|
||||
ng-options="cat.id as cat.name for cat in CategoryService.flatCategories">
|
||||
ng-options="cat.id as cat.name for cat in CategoryService.flatCategories | filter: filterCurrent">
|
||||
</select>
|
||||
<span class="help-block" ng-show="!form.category.$valid">Required</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user