mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix tagging issues
This commit is contained in:
@@ -72,7 +72,7 @@ module.directive('tags', function() {
|
|||||||
tags : []
|
tags : []
|
||||||
};
|
};
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
data.tags = newValue.split(',');
|
data.tags = newValue;
|
||||||
}
|
}
|
||||||
EntryService.tag(data);
|
EntryService.tag(data);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ module.factory('EntryService', ['$resource', '$http', function($resource, $http)
|
|||||||
$http.get('rest/entry/tags').success(function(data) {
|
$http.get('rest/entry/tags').success(function(data) {
|
||||||
res.tags = [];
|
res.tags = [];
|
||||||
res.tags.push.apply(res.tags, data);
|
res.tags.push.apply(res.tags, data);
|
||||||
|
res.tags.sort();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
var oldTag = res.tag;
|
var oldTag = res.tag;
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
<span class="label label-info" ng-repeat="tag in entry.tags">{{tag}}</span>
|
<span class="label label-info" ng-repeat="tag in entry.tags">{{tag}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span ng-if="edit_mode">
|
<span ng-if="edit_mode">
|
||||||
<input type="text" ui-select2="select2Options" ng-model="entry.tags" class="tag-input" autofocus />
|
<input type="hidden" ui-select2="select2Options" ng-model="entry.tags" class="tag-input" autofocus />
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
Reference in New Issue
Block a user