mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
15 lines
327 B
JavaScript
15 lines
327 B
JavaScript
'use strict';
|
|
|
|
habitrpg.controller("TavernCtrl", ['$scope', 'Groups', 'User',
|
|
function($scope, Groups, User) {
|
|
Groups.tavern()
|
|
.then(function (tavern) {
|
|
$scope.group = tavern;
|
|
})
|
|
|
|
$scope.toggleUserTier = function($event) {
|
|
$($event.target).next().toggle();
|
|
}
|
|
}
|
|
]);
|