Unset .cid for challenge on challenge delete

This commit is contained in:
Kevin Gisi
2015-03-28 02:57:29 -04:00
parent 79fe0b53c5
commit 6fb95ec27b

View File

@@ -113,6 +113,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
*/
function backToChallenges(){
$scope.popoverEl.popover('destroy');
$scope.cid = null;
$state.go('options.social.challenges');
$scope.challenges = Challenges.Challenge.query();
User.log({});