Add mising semi colons and line breaks

This commit is contained in:
Blade Barringer
2015-07-24 10:41:52 -05:00
parent 95131f276b
commit 61d0172567

View File

@@ -147,7 +147,8 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
$scope.popoverEl = undefined; $scope.popoverEl = undefined;
$scope.closingChal = undefined; $scope.closingChal = undefined;
challenge.winner = undefined; challenge.winner = undefined;
} };
$scope["delete"] = function(challenge) { $scope["delete"] = function(challenge) {
var warningMsg; var warningMsg;
if(challenge.group._id == 'habitrpg') { if(challenge.group._id == 'habitrpg') {
@@ -161,6 +162,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
_backToChallenges(); _backToChallenges();
}); });
}; };
$scope.selectWinner = function(challenge) { $scope.selectWinner = function(challenge) {
if (!challenge.winner) return; if (!challenge.winner) return;
if (!confirm(window.env.t('youSure'))) return; if (!confirm(window.env.t('youSure'))) return;
@@ -169,6 +171,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
_backToChallenges(); _backToChallenges();
}) })
} }
$scope.close = function(challenge, $event) { $scope.close = function(challenge, $event) {
$scope.closingChal = challenge; $scope.closingChal = challenge;
$scope.popoverEl = $($event.target); $scope.popoverEl = $($event.target);
@@ -180,8 +183,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
title: window.env.t('closeCha'), title: window.env.t('closeCha'),
content: html content: html
}).popover('show'); }).popover('show');
};
}
$scope.toggle = function(id){ $scope.toggle = function(id){
if($state.includes('options.social.challenges.detail', {cid: id})){ if($state.includes('options.social.challenges.detail', {cid: id})){
@@ -189,7 +191,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
}else{ }else{
$state.go('options.social.challenges.detail', {cid: id}); $state.go('options.social.challenges.detail', {cid: id});
} }
} };
$scope.toggleMember = function(cid, uid){ $scope.toggleMember = function(cid, uid){
if($state.includes('options.social.challenges.detail.member', {cid: cid, uid: uid})){ if($state.includes('options.social.challenges.detail.member', {cid: cid, uid: uid})){
@@ -197,7 +199,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
}else{ }else{
$state.go('options.social.challenges.detail.member', {cid: cid, uid: uid}); $state.go('options.social.challenges.detail.member', {cid: cid, uid: uid});
} }
} };
//------------------------------------------------------------ //------------------------------------------------------------
// Tasks // Tasks