daybook date issue
This commit is contained in:
parent
394822e95f
commit
b9926dac02
@ -335,8 +335,10 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
|
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
|
||||||
} else {
|
} else {
|
||||||
$scope.disableAddButton = true;
|
$scope.disableAddButton = true;
|
||||||
|
var sdate= $('#datere').val();
|
||||||
var formate = "dd-MM-yyyy";
|
var formate = "dd-MM-yyyy";
|
||||||
$scope.myModelAdd.date = $filter('date')(new Date($scope.myModelAdd.date), formate);
|
$scope.myModelAdd.date= sdate;
|
||||||
|
//$scope.myModelAdd.date = $filter('date')(new Date($scope.myModelAdd.date), formate);
|
||||||
$scope.myModelAdd.status = $scope.myModelAdd.name == 'I001' ? 'Pending' : 'Approved';
|
$scope.myModelAdd.status = $scope.myModelAdd.name == 'I001' ? 'Pending' : 'Approved';
|
||||||
// $scope.data.push(myModelAdd);
|
// $scope.data.push(myModelAdd);
|
||||||
|
|
||||||
|
|||||||
@ -315,7 +315,7 @@
|
|||||||
Date <span
|
Date <span
|
||||||
class="symbol required"></span>
|
class="symbol required"></span>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAdd.date"
|
<input type="text" id="datere" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAdd.date"
|
||||||
is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions"
|
is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions"
|
||||||
placeholder="Select Date" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
placeholder="Select Date" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
||||||
show-button-bar="true" max-date="todayDate" />
|
show-button-bar="true" max-date="todayDate" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user