Transition Challenge -> Edit to the Singleton challenge view, to address issues associated with #4814

This commit is contained in:
Kevin Gisi
2015-03-28 05:01:44 -04:00
parent 6fb95ec27b
commit da81241ebe
3 changed files with 21 additions and 3 deletions

View File

@@ -146,6 +146,16 @@ window.habitrpg = angular.module('habitrpg',
});
}]
})
.state('options.social.challenges.edit', {
url: '/:cid/edit',
templateUrl: 'partials/options.social.challenges.detail.html',
controller: ['$scope', 'Challenges', '$stateParams',
function($scope, Challenges, $stateParams){
$scope.obj = $scope.challenge = Challenges.Challenge.get({cid:$stateParams.cid}, function(){
$scope.challenge._locked = false;
});
}]
})
.state('options.social.challenges.detail.member', {
url: '/:uid',
templateUrl: 'partials/options.social.challenges.detail.member.html',