Made DaybookCtrl minifiable.
Updated login.html to remove unfocusable error.
This commit is contained in:
parent
56e8e6acb1
commit
b5518a7577
|
@ -1,6 +1,6 @@
|
||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
|
|
||||||
# version 2012-12-07.3
|
# version 2012-12-07.5
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
/partial/404.html
|
/partial/404.html
|
||||||
|
|
|
@ -19,14 +19,14 @@
|
||||||
<label class="control-label" for="otp">OTP</label>
|
<label class="control-label" for="otp">OTP</label>
|
||||||
|
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group" ng-show="showOTP">
|
<div class="control-group" ng-show="showOTP">
|
||||||
<label class="control-label" for="clientName">Client Name</label>
|
<label class="control-label" for="clientName">Client Name</label>
|
||||||
|
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function DaybookCtrl($scope, $location, info) {
|
var DaybookCtrl = ['$scope', '$location', 'info', function ($scope, $location, info) {
|
||||||
$scope.info = info;
|
$scope.info = info;
|
||||||
$scope.show = function () {
|
$scope.show = function () {
|
||||||
$location.path('/Daybook').search({StartDate:$scope.info.StartDate, FinishDate:$scope.info.FinishDate});
|
$location.path('/Daybook').search({StartDate:$scope.info.StartDate, FinishDate:$scope.info.FinishDate});
|
||||||
};
|
};
|
||||||
$('#txtStartDate').focus();
|
$('#txtStartDate').focus();
|
||||||
}
|
}]
|
||||||
DaybookCtrl.resolve = {
|
DaybookCtrl.resolve = {
|
||||||
info:function ($q, $route, Daybook) {
|
info:['$q', '$route', 'Daybook', function ($q, $route, Daybook) {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
|
|
||||||
var start_date = $route.current.params.StartDate;
|
var start_date = $route.current.params.StartDate;
|
||||||
|
@ -24,5 +24,5 @@ DaybookCtrl.resolve = {
|
||||||
Daybook.get({StartDate:start_date, FinishDate:finish_date}, successCb);
|
Daybook.get({StartDate:start_date, FinishDate:finish_date}, successCb);
|
||||||
}
|
}
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
}
|
}]
|
||||||
};
|
};
|
Loading…
Reference in New Issue