Made DaybookCtrl minifiable.

Updated login.html to remove unfocusable error.
This commit is contained in:
Tanshu 2012-12-07 15:59:39 +05:30
parent 56e8e6acb1
commit b5518a7577
3 changed files with 7 additions and 7 deletions

View File

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

View File

@ -19,14 +19,14 @@
<label class="control-label" for="otp">OTP</label>
<div class="controls">
<input type="text" ng-model="otp" id="otp" required placeholder="OTP"/>
<input type="text" ng-model="otp" id="otp" placeholder="OTP"/>
</div>
</div>
<div class="control-group" ng-show="showOTP">
<label class="control-label" for="clientName">Client Name</label>
<div class="controls">
<input type="text" ng-model="name" id="clientName" required placeholder="Client Name"/>
<input type="text" ng-model="name" id="clientName" placeholder="Client Name"/>
</div>
</div>
<div class="control-group">

View File

@ -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;
}
}]
};