0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #4153 from halfdan/4151-tag-order

Fix tag order
This commit is contained in:
Hannah Wolfe 2014-09-25 11:29:10 +01:00
commit c6dd964665

View file

@ -6,7 +6,6 @@ var PostTagsInputController = Ember.Controller.extend({
var proxyTags = Ember.ArrayProxy.create({
content: this.get('parentController.tags')
}),
temp = proxyTags.get('arrangedContent').slice();
proxyTags.get('arrangedContent').clear();
@ -22,9 +21,7 @@ var PostTagsInputController = Ember.Controller.extend({
}
});
temp.forEach(function (tag) {
proxyTags.get('arrangedContent').addObject(tag);
});
proxyTags.get('arrangedContent').unshiftObjects(temp);
return proxyTags;
}),