feat(sharing): Load widgets from service

This commit is contained in:
Sabe Jones
2015-10-22 14:37:29 -04:00
parent 281411f423
commit e2cfd1bd54
5 changed files with 43 additions and 20 deletions

View File

@@ -1,11 +1,12 @@
"use strict";
habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$http', '$state', 'Guide', 'Shared', 'Content', 'Stats',
function($rootScope, $scope, $location, User, $http, $state, Guide, Shared, Content, Stats) {
habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$http', '$state', 'Guide', 'Shared', 'Content', 'Stats', 'Social',
function($rootScope, $scope, $location, User, $http, $state, Guide, Shared, Content, Stats, Social) {
$scope.profile = User.user;
$scope.statCalc = Stats;
$.getScript('https://platform.twitter.com/widgets.js');
$scope.loadWidgets = Social.loadWidgets;
$scope.hideUserAvatar = function() {
$(".userAvatar").hide();