Commit bdacfd83 authored by kurachy's avatar kurachy
Browse files

disabled past dates selection on deliverables date picker

parent 36f0e680
......@@ -34,8 +34,9 @@ root.controller('DeliverablePopupCtrl', ['$scope', '$stateParams', '$http', '$me
}
function initDatePicker(){
$( "#deadline" ).datepicker({dateFormat: 'yy-mm-dd',onSelect: function(date) {
$( "#deadline" ).datepicker({dateFormat: 'yy-mm-dd',minDate: 0, onSelect: function(date) {
//$scope.$apply();
vm.newElement.date = $("#deadline" ).val();
}});
......
......@@ -434,7 +434,7 @@ root.controller('TaskOverviewCtrl', ['$scope', '$stateParams','$http', '$interva
taskCtrl.initJquery = function(){
$timeout(function(){
$("#inputDate" ).datepicker({dateFormat: 'yy-mm-dd',onSelect: function(date) {
$("#inputDate" ).datepicker({dateFormat: 'yy-mm-dd',minDate: 0, onSelect: function(date) {
$scope.$apply();
taskCtrl.editTask.maxDate = $("#inputDate" ).val();
}});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment