mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:51:55 +00:00
* scroll to top feature * small fix * unwanted commits removed * unwanted commits removed2 * unwanted commits removed3
23 lines
846 B
JavaScript
23 lines
846 B
JavaScript
(function (module) {
|
|
mifosX.controllers = _.extend(module, {
|
|
AccountingRuleController: function (scope, resourceFactory, location, anchorScroll) {
|
|
scope.routeTo = function (id) {
|
|
location.path('/viewaccrule/' + id);
|
|
};
|
|
scope.scrollto = function (link){
|
|
location.hash(link);
|
|
anchorScroll();
|
|
|
|
};
|
|
|
|
resourceFactory.accountingRulesResource.get(function (data) {
|
|
scope.rules = data;
|
|
});
|
|
|
|
|
|
}
|
|
});
|
|
mifosX.ng.application.controller('AccountingRuleController', ['$scope', 'ResourceFactory', '$location','$anchorScroll', mifosX.controllers.AccountingRuleController]).run(function ($log) {
|
|
$log.info("AccountingRuleController initialized");
|
|
});
|
|
}(mifosX.controllers || {})); |