Correctly index calculator fields. Adds ng-bind-html-unsafe-compiled.

This commit is contained in:
Rohan Mitchell
2012-11-23 17:02:58 +11:00
parent 52ebe2c495
commit 5e0a5654ff
6 changed files with 22 additions and 17 deletions

View File

@@ -4,8 +4,14 @@ function AdminEnterpriseFeesCtrl($scope, $http) {
});
}
angular.module('enterprise_fees', [])
.directive('ngBindHtmlUnsafeCompiled', 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) {