mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Correctly index calculator fields. Adds ng-bind-html-unsafe-compiled.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user