feat(directives): move directive to be used in mobile from habitrpg

This commit is contained in:
Matteo Pagliazzi 2014-07-12 15:53:06 +02:00
parent 44af90bae7
commit 214facaa93

View file

@ -99,4 +99,15 @@
}
};
});
})()
})()
habitrpg.directive('questRewards', ['$rootScope', function($rootScope){
return {
restrict: 'AE',
templateUrl: 'partials/options.social.party.quest-rewards.html',
link: function(scope, element, attrs){
scope.header = attrs.header || 'Rewards';
scope.quest = $rootScope.Content.quests[attrs.key];
}
}
}]);