Revert inventory equipment/gear sorting due to inability to de/equip and maybe performance issues.

This reverts commits 1c811dbc82, 146810a3e9, 9508ed45df, a6fb945120.
This commit is contained in:
Alys
2016-03-17 21:47:29 +10:00
parent b4b0d7e89c
commit 9d50201180
8 changed files with 31 additions and 120 deletions

View File

@@ -1,21 +0,0 @@
habitrpg.controller('SortableInventoryController', ['$scope',
function ($scope) {
var attributeSort = {
constitution: ['-con', '-(con+int+per+str)'],
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];
}
};
}]);