CashflowCtrl is minifiable.

ProductLedgerCtrl.Resolve was mistakenly not minifiable, fixed.
Updated appcache file so that cache is updated.
This commit is contained in:
Tanshu 2012-12-07 14:39:16 +05:30
parent 86aa1642d0
commit 428de7f677
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
CACHE MANIFEST CACHE MANIFEST
# version 2012-12-07.1 # version 2012-12-07.2
CACHE: CACHE:
/partial/404.html /partial/404.html

View File

@ -1,14 +1,14 @@
'use strict'; '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.info = cash_flow;
$scope.show = function () { $scope.show = function () {
$location.path('/CashFlow').search({StartDate:$scope.info.StartDate, FinishDate:$scope.info.FinishDate}); $location.path('/CashFlow').search({StartDate:$scope.info.StartDate, FinishDate:$scope.info.FinishDate});
}; };
$('#txtStartDate').focus(); $('#txtStartDate').focus();
} }]
CashFlowCtrl.resolve = { CashFlowCtrl.resolve = {
cash_flow:function ($q, $route, CashFlow) { cash_flow:['$q', '$route', 'CashFlow', function ($q, $route, CashFlow) {
var deferred = $q.defer(); var deferred = $q.defer();
var id = $route.current.params.id; var id = $route.current.params.id;
@ -27,5 +27,5 @@ CashFlowCtrl.resolve = {
CashFlow.get({id:id, StartDate:start_date, FinishDate:finish_date}, successCb); CashFlow.get({id:id, StartDate:start_date, FinishDate:finish_date}, successCb);
} }
return deferred.promise; return deferred.promise;
} }]
}; };

View File

@ -24,7 +24,7 @@ var ProductLedgerCtrl = ['$scope', '$routeParams', '$location', 'product_ledger'
$('#txtProduct').focus(); $('#txtProduct').focus();
}] }]
ProductLedgerCtrl.resolve = { ProductLedgerCtrl.resolve = {
product_ledger:function ($q, $route, ProductLedger) { product_ledger:['$q', '$route', 'ProductLedger', function ($q, $route, ProductLedger) {
var deferred = $q.defer(); var deferred = $q.defer();
var id = $route.current.params.id; var id = $route.current.params.id;
@ -41,5 +41,5 @@ ProductLedgerCtrl.resolve = {
ProductLedger.get({id:id, StartDate:start_date, FinishDate:finish_date}, successCb); ProductLedger.get({id:id, StartDate:start_date, FinishDate:finish_date}, successCb);
} }
return deferred.promise; return deferred.promise;
} }]
}; }