fix: Remove name from sortable inventory

This commit is contained in:
Blade Barringer
2016-03-17 08:47:56 -05:00
parent d4d668a7aa
commit ced0b44b2f
2 changed files with 4 additions and 5 deletions

View File

@@ -5,17 +5,16 @@ habitrpg.controller('SortableInventoryController', ['$scope',
intelligence: ['-int', '-(con+int+per+str)'],
perception: ['-per', '-(con+int+per+str)'],
strength: ['-str', '-(con+int+per+str)'],
name: 'text()',
set: 'set'
}
$scope.order = attributeSort.name;
$scope.orderChoice = 'name';
$scope.setOrder = function (order) {
$scope.orderChoice = order;
if (order in attributeSort) {
$scope.order = attributeSort[order];
}
};
$scope.orderChoice = 'set';
$scope.setOrder($scope.orderChoice);
}]);