Singleton challenge edit -> detail on save
This commit is contained in:
Kevin Gisi
2015-04-10 08:53:00 -04:00
parent dabb6244e7
commit 50bbe5b2f5

View File

@@ -99,10 +99,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
$scope.challenges = Challenges.Challenge.query();
User.sync();
} else {
// TODO figure out a more elegant way about this
//challenge._editing = false;
challenge._locked = true;
getChallenges();
$state.go('options.social.challenges.detail', {cid: _challenge._id});
}
});
};