mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Fix member modal on static/front
This commit is contained in:
@@ -6,11 +6,12 @@ window.habitrpg = angular.module('habitrpg', ['chieffancypants.loadingBar', 'ui.
|
|||||||
.constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings')
|
.constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings')
|
||||||
.constant("MOBILE_APP", false)
|
.constant("MOBILE_APP", false)
|
||||||
|
|
||||||
.controller("RootCtrl", ['$scope', '$location', '$modal', '$http', function($scope, $location, $modal, $http){
|
.controller("RootCtrl", ['$scope', '$location', '$modal', '$http', 'Stats', function($scope, $location, $modal, $http, Stats){
|
||||||
var memberId = $location.search()['memberId'];
|
var memberId = $location.search()['memberId'];
|
||||||
if (memberId) {
|
if (memberId) {
|
||||||
$http.get('/api/v2/members/'+memberId).success(function(data, status, headers, config){
|
$http.get('/api/v2/members/'+memberId).success(function(data, status, headers, config){
|
||||||
$scope.profile = data;
|
$scope.profile = window.habitrpgShared.wrap(data, false);
|
||||||
|
$scope.statCalc = Stats;
|
||||||
$scope.Content = window.habitrpgShared.content;
|
$scope.Content = window.habitrpgShared.content;
|
||||||
$modal.open({
|
$modal.open({
|
||||||
templateUrl: 'modals/member.html',
|
templateUrl: 'modals/member.html',
|
||||||
@@ -18,8 +19,6 @@ window.habitrpg = angular.module('habitrpg', ['chieffancypants.loadingBar', 'ui.
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.Math = window.Math;
|
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.controller("PlansCtrl", ['$rootScope','Analytics',
|
.controller("PlansCtrl", ['$rootScope','Analytics',
|
||||||
|
|||||||
@@ -113,6 +113,8 @@
|
|||||||
"js/static.js",
|
"js/static.js",
|
||||||
"js/services/analyticsServices.js",
|
"js/services/analyticsServices.js",
|
||||||
"js/services/notificationServices.js",
|
"js/services/notificationServices.js",
|
||||||
|
"js/services/sharedServices.js",
|
||||||
|
"js/services/statServices.js",
|
||||||
"common/script/public/userServices.js",
|
"common/script/public/userServices.js",
|
||||||
"js/controllers/authCtrl.js",
|
"js/controllers/authCtrl.js",
|
||||||
"js/controllers/footerCtrl.js"
|
"js/controllers/footerCtrl.js"
|
||||||
@@ -140,6 +142,8 @@
|
|||||||
"js/static.js",
|
"js/static.js",
|
||||||
"js/services/analyticsServices.js",
|
"js/services/analyticsServices.js",
|
||||||
"js/services/notificationServices.js",
|
"js/services/notificationServices.js",
|
||||||
|
"js/services/sharedServices.js",
|
||||||
|
"js/services/statServices.js",
|
||||||
"common/script/public/userServices.js",
|
"common/script/public/userServices.js",
|
||||||
"js/controllers/authCtrl.js",
|
"js/controllers/authCtrl.js",
|
||||||
"js/controllers/footerCtrl.js"
|
"js/controllers/footerCtrl.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user