Made DaybookCtrl minifiable.
Updated login.html to remove unfocusable error.
This commit is contained in:
parent
56e8e6acb1
commit
b5518a7577
brewman/brewman/static
@ -1,6 +1,6 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# version 2012-12-07.3
|
||||
# version 2012-12-07.5
|
||||
|
||||
CACHE:
|
||||
/partial/404.html
|
||||
|
@ -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">
|
||||
|
@ -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;
|
||||
}
|
||||
}]
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user