From 214facaa9340eedd70acce0cca713ced542653d6 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sat, 12 Jul 2014 15:53:06 +0200 Subject: [PATCH] feat(directives): move directive to be used in mobile from habitrpg --- script/directives.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/script/directives.js b/script/directives.js index 0f159aa7a4..07fd3596cc 100644 --- a/script/directives.js +++ b/script/directives.js @@ -99,4 +99,15 @@ } }; }); -})() \ No newline at end of file +})() + +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]; + } + } +}]); \ No newline at end of file