fix to toggle helm
This commit is contained in:
@@ -6,4 +6,7 @@ habitrpg.controller("UserAvatarCtrl", ['$scope', '$location', 'User',
|
||||
$scope.hideUserAvatar = function() {
|
||||
$(".userAvatar").hide();
|
||||
};
|
||||
$scope.toggleHelm = function(val){
|
||||
User.log({op:'set', data:{'preferences.showHelm':val}});
|
||||
}
|
||||
}]);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
button.m_head_0.customize-option(type='button', ng-click='set("preferences.gender","m")')
|
||||
button.f_head_0.customize-option(type='button', ng-click='set("preferences.gender","f")')
|
||||
label.checkbox
|
||||
input(type='checkbox', checked='{{user.preferences.showHelm}}')
|
||||
input(type='checkbox', ng-model='user.preferences.showHelm', ng-change='toggleHelm(user.preferences.showHelm)')
|
||||
| Show Helm
|
||||
// hair
|
||||
li.customize-menu
|
||||
|
||||
@@ -4,7 +4,7 @@ block vars
|
||||
- var layoutEnv = env
|
||||
|
||||
block title
|
||||
title HabitRPG | Gamify Your Life
|
||||
title HabitRPG | Gamify Your Life
|
||||
|
||||
block content
|
||||
div(ng-app='habitrpg')
|
||||
|
||||
Reference in New Issue
Block a user