From ce2c6c5661cc493e445d07983bb591f6447000dc Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 25 Jun 2013 12:17:15 +1000 Subject: [PATCH] Fix uninjected directive for enterprise fees --- app/assets/javascripts/admin/enterprise_fees.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/enterprise_fees.js b/app/assets/javascripts/admin/enterprise_fees.js index bd99351ca8..befe8204b8 100644 --- a/app/assets/javascripts/admin/enterprise_fees.js +++ b/app/assets/javascripts/admin/enterprise_fees.js @@ -11,13 +11,14 @@ angular.module('enterprise_fees', []) }); }]) - .directive('ngBindHtmlUnsafeCompiled', function($compile) { + .directive('ngBindHtmlUnsafeCompiled', ['$compile', function($compile) { return function(scope, element, attrs) { scope.$watch(attrs.ngBindHtmlUnsafeCompiled, function(value) { element.html($compile(value)(scope)); }); } - }) + }]) + .directive('spreeDeleteResource', function() { return function(scope, element, attrs) { if(scope.enterprise_fee.id) { @@ -28,6 +29,7 @@ angular.module('enterprise_fees', []) } } }) + .directive('spreeEnsureCalculatorPreferencesMatchType', function() { // Hide calculator preference fields when calculator type changed // Fixes 'Enterprise fee is not found' error when changing calculator type