mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Fixed reorder categories by number not working correctly
This commit is contained in:
@@ -85,8 +85,7 @@ export default Ember.Controller.extend(ModalFunctionality, Ember.Evented, {
|
||||
actions: {
|
||||
change(cat, e) {
|
||||
let position = parseInt($(e.target).val());
|
||||
cat.set("position", position);
|
||||
this.fixIndices();
|
||||
this.moveDir(cat, position - this.get("categoriesOrdered").indexOf(cat));
|
||||
},
|
||||
|
||||
moveUp(cat) {
|
||||
|
||||
Reference in New Issue
Block a user