classes: add just guide for classes unlock

This commit is contained in:
Tyler Renelle
2013-12-16 13:33:05 -07:00
parent a1590f7f3e
commit 5251b4ce3c
5 changed files with 64 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
"use strict";
habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$http', '$state',
function($rootScope, $scope, $location, User, $http, $state) {
habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$http', '$state', 'Guide',
function($rootScope, $scope, $location, User, $http, $state, Guide) {
$scope.profile = User.user;
$scope.hideUserAvatar = function() {
$(".userAvatar").hide();
@@ -26,6 +26,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
$scope.selectedClass = undefined;
$rootScope.Shared.updateStore(User.user);
$state.go('options.profile.stats');
Guide.classesTour();
}
$scope.save = function(){