From 428de7f6778607b74aa369832071c9f472a415bb Mon Sep 17 00:00:00 2001 From: Tanshu Date: Fri, 7 Dec 2012 14:39:16 +0530 Subject: [PATCH] CashflowCtrl is minifiable. ProductLedgerCtrl.Resolve was mistakenly not minifiable, fixed. Updated appcache file so that cache is updated. --- brewman/brewman/static/offline.appcache | 2 +- brewman/brewman/static/scripts/cash-flow.js | 8 ++++---- brewman/brewman/static/scripts/product-ledger.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/brewman/brewman/static/offline.appcache b/brewman/brewman/static/offline.appcache index a362bfdb..eec75891 100644 --- a/brewman/brewman/static/offline.appcache +++ b/brewman/brewman/static/offline.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# version 2012-12-07.1 +# version 2012-12-07.2 CACHE: /partial/404.html diff --git a/brewman/brewman/static/scripts/cash-flow.js b/brewman/brewman/static/scripts/cash-flow.js index bb2139b1..a0a20c16 100644 --- a/brewman/brewman/static/scripts/cash-flow.js +++ b/brewman/brewman/static/scripts/cash-flow.js @@ -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; - } + }] }; diff --git a/brewman/brewman/static/scripts/product-ledger.js b/brewman/brewman/static/scripts/product-ledger.js index 5e62c9ff..c18aeb53 100644 --- a/brewman/brewman/static/scripts/product-ledger.js +++ b/brewman/brewman/static/scripts/product-ledger.js @@ -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; - } -}; + }] +}