From b5518a75773becb34014c223f92695305e2089bd Mon Sep 17 00:00:00 2001 From: Tanshu Date: Fri, 7 Dec 2012 15:59:39 +0530 Subject: [PATCH] Made DaybookCtrl minifiable. Updated login.html to remove unfocusable error. --- brewman/brewman/static/offline.appcache | 2 +- brewman/brewman/static/partial/login.html | 4 ++-- brewman/brewman/static/scripts/daybook.js | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/brewman/brewman/static/offline.appcache b/brewman/brewman/static/offline.appcache index bb8e46ef..33af769e 100644 --- a/brewman/brewman/static/offline.appcache +++ b/brewman/brewman/static/offline.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# version 2012-12-07.3 +# version 2012-12-07.5 CACHE: /partial/404.html diff --git a/brewman/brewman/static/partial/login.html b/brewman/brewman/static/partial/login.html index 94422ef1..839ffb7a 100644 --- a/brewman/brewman/static/partial/login.html +++ b/brewman/brewman/static/partial/login.html @@ -19,14 +19,14 @@
- +
- +
diff --git a/brewman/brewman/static/scripts/daybook.js b/brewman/brewman/static/scripts/daybook.js index 61c5dc46..d5b9397a 100644 --- a/brewman/brewman/static/scripts/daybook.js +++ b/brewman/brewman/static/scripts/daybook.js @@ -1,14 +1,14 @@ 'use strict'; -function DaybookCtrl($scope, $location, info) { +var DaybookCtrl = ['$scope', '$location', 'info', function ($scope, $location, info) { $scope.info = info; $scope.show = function () { $location.path('/Daybook').search({StartDate:$scope.info.StartDate, FinishDate:$scope.info.FinishDate}); }; $('#txtStartDate').focus(); -} +}] DaybookCtrl.resolve = { - info:function ($q, $route, Daybook) { + info:['$q', '$route', 'Daybook', function ($q, $route, Daybook) { var deferred = $q.defer(); var start_date = $route.current.params.StartDate; @@ -24,5 +24,5 @@ DaybookCtrl.resolve = { Daybook.get({StartDate:start_date, FinishDate:finish_date}, successCb); } return deferred.promise; - } + }] }; \ No newline at end of file