fix(classes) misc fixes

This commit is contained in:
Tyler Renelle 2013-12-13 17:08:25 -07:00
parent 9d9b8120cd
commit d2121a8587
3 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
}
$scope.changeClass = function(klass){
if (!$scope.selectedClass) return;
if (!klass) {
if (!confirm("Are you sure you want to re-roll? This will reset your character's class and allocated points (you'll get them all back to re-allocate)"))
return;

View file

@ -225,7 +225,7 @@ api.update = function(req, res, next) {
api.cron = function(req, res, next) {
var user = res.locals.user;
shared.cron(user);
user.fns.cron();
if (user.isModified())
res.locals.wasModified = true;
user.save(next);

View file

@ -67,4 +67,4 @@
.well(ng-show='selectedClass=="healer"') Healers have high defense against damage, and can heal themselves and other players in the party, as well as buff players.
.modal-footer
button.btn.btn-default.cancel(ng-click='changeClass(selectedClass)') Select
button.btn.btn-default.cancel(ng-click='selectedClass && changeClass(selectedClass)') Select