diff --git a/app/assets/javascripts/outfits/edit.js b/app/assets/javascripts/outfits/edit.js index c9f26172..f39f2c89 100644 --- a/app/assets/javascripts/outfits/edit.js +++ b/app/assets/javascripts/outfits/edit.js @@ -211,7 +211,7 @@ View.Hash = function (wardrobe) { STRING: 2, INTEGER_ARRAY: 3 }, KEYS = { - biologies: TYPES.INTEGER_ARRAY, + biology: TYPES.INTEGER_ARRAY, closet: TYPES.INTEGER_ARRAY, color: TYPES.INTEGER, name: TYPES.STRING, @@ -253,8 +253,8 @@ View.Hash = function (wardrobe) { } } - if(new_data.biologies) { - wardrobe.outfits.setPetStateAssetsByIds(new_data.biologies); + if(new_data.biology) { + wardrobe.outfits.setPetStateAssetsByIds(new_data.biology); } if(new_data.color !== data.color || new_data.species !== data.species) { wardrobe.outfits.setPetTypeByColorAndSpecies(new_data.color, new_data.species); @@ -376,7 +376,7 @@ View.Hash = function (wardrobe) { singleOutfitResponse('updatePetState', function (pet_state) { var pet_type = wardrobe.outfits.getPetType(); if(pet_state.id != data.state && pet_type && (data.state || pet_state.id != pet_type.pet_states[0].id)) { - changeQuery({biologies: undefined, state: pet_state.id}); + changeQuery({biology: undefined, state: pet_state.id}); } }); @@ -388,7 +388,7 @@ View.Hash = function (wardrobe) { wardrobe.outfits.bind('loadOutfit', function (outfit) { changeQuery({ - biologies: undefined, + biology: undefined, closet: outfit.getClosetItemIds(), color: outfit.pet_type.color_id, objects: outfit.getWornItemIds(),