Add angular include, basic controller for listing enterprise fees, display fee ids using angular

This commit is contained in:
Rohan Mitchell
2012-11-21 14:59:02 +11:00
parent 63ba5d13a3
commit dd155532f8
2 changed files with 22 additions and 1 deletions

View File

@@ -1,3 +1,18 @@
function AdminEnterpriseFeesCtrl($scope, $http) {
$http.get('/admin/enterprise_fees.json').success(function(data) {
$scope.enterprise_fees = data;
});
}
/*
// Hide calculator preference fields when calculator type changed
// Fixes 'Enterprise fee is not found' error when changing calculator type
// See spree/core/app/assets/javascripts/admin/calculator.js
@@ -24,3 +39,4 @@ $(document).ready(function() {
}
});
});
*/