CashflowCtrl is minifiable.
ProductLedgerCtrl.Resolve was mistakenly not minifiable, fixed. Updated appcache file so that cache is updated.
This commit is contained in:
parent
86aa1642d0
commit
428de7f677
@ -1,6 +1,6 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# version 2012-12-07.1
|
||||
# version 2012-12-07.2
|
||||
|
||||
CACHE:
|
||||
/partial/404.html
|
||||
|
@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
function CashFlowCtrl($scope, $routeParams, $location, cash_flow) {
|
||||
var CashFlowCtrl = ['$scope', '$routeParams', '$location', 'cash_flow', function ($scope, $routeParams, $location, cash_flow) {
|
||||
$scope.info = cash_flow;
|
||||
$scope.show = function () {
|
||||
$location.path('/CashFlow').search({StartDate:$scope.info.StartDate, FinishDate:$scope.info.FinishDate});
|
||||
};
|
||||
$('#txtStartDate').focus();
|
||||
}
|
||||
}]
|
||||
CashFlowCtrl.resolve = {
|
||||
cash_flow:function ($q, $route, CashFlow) {
|
||||
cash_flow:['$q', '$route', 'CashFlow', function ($q, $route, CashFlow) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
var id = $route.current.params.id;
|
||||
@ -27,5 +27,5 @@ CashFlowCtrl.resolve = {
|
||||
CashFlow.get({id:id, StartDate:start_date, FinishDate:finish_date}, successCb);
|
||||
}
|
||||
return deferred.promise;
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ var ProductLedgerCtrl = ['$scope', '$routeParams', '$location', 'product_ledger'
|
||||
$('#txtProduct').focus();
|
||||
}]
|
||||
ProductLedgerCtrl.resolve = {
|
||||
product_ledger:function ($q, $route, ProductLedger) {
|
||||
product_ledger:['$q', '$route', 'ProductLedger', function ($q, $route, ProductLedger) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
var id = $route.current.params.id;
|
||||
@ -41,5 +41,5 @@ ProductLedgerCtrl.resolve = {
|
||||
ProductLedger.get({id:id, StartDate:start_date, FinishDate:finish_date}, successCb);
|
||||
}
|
||||
return deferred.promise;
|
||||
}
|
||||
};
|
||||
}]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user