function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
egGridDataProvider , $location , $timeout , egCirc , ngToast) {
+ var now = new Date();
$scope.initTab('checkout', $routeParams.id).finally(function(){
$scope.focusMe = true;
$scope.checkouts = patronSvc.checkouts;
$scope.checkoutArgs = {
noncat_type : 'barcode',
- due_date : new Date()
+ due_date : new Date(now)
};
- $scope.minDate = new Date();
+ $scope.minDate = new Date(now);
$scope.outOfRange = false;
$scope.gridDataProvider = egGridDataProvider.instance({
get : function(offset, count) {
controller : [
'$scope','$uibModalInstance',
function($scope , $uibModalInstance) {
+ var now = new Date();
$scope.outOfRange = false;
- $scope.minDate = new Date();
+ $scope.minDate = new Date(now);
$scope.args = {
barcodes : barcodes,
- date : new Date()
+ date : new Date(now)
}
$scope.cancel = function() {$uibModalInstance.dismiss()}
.controller('RenewCtrl',
['$scope','$window','$location','egCore','egGridDataProvider','egCirc',
function($scope , $window , $location , egCore , egGridDataProvider , egCirc) {
+ var now = new Date();
egCore.hatch.getItem('circ.renew.strict_barcode')
.then(function(sb){ $scope.strict_barcode = sb });
$scope.focusBarcode = true;
$scope.outOfRange = false;
- $scope.minDate = new Date();
+ $scope.minDate = new Date(now);
$scope.renewals = [];
- var today = new Date();
- $scope.renewalArgs = {due_date : today};
+ $scope.renewalArgs = {due_date : new Date(now)};
$scope.sort_money = function (a,b) {
var ma = parseFloat(a);