Added param to filter challenges by guild when a challenge is first clicked from guild

This commit is contained in:
TheHollidayInn
2015-09-20 10:26:08 -05:00
parent 87f6af346a
commit 43c9683a8b
3 changed files with 9 additions and 2 deletions

View File

@@ -148,6 +148,7 @@ window.habitrpg = angular.module('habitrpg',
// Options > Social > Challenges
.state('options.social.challenges', {
url: "/challenges",
params: { groupIdFilter: null },
controller: 'ChallengesCtrl',
templateUrl: "partials/options.social.challenges.html"
})
@@ -156,7 +157,6 @@ window.habitrpg = angular.module('habitrpg',
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 = true;
});