Commit 9dfd8e15 authored by Anthony Geourjon's avatar Anthony Geourjon
Browse files

Merge branch 'EDCAMPUS-9-formulaire-livrables' into 'master'

disabled past dates selection on deliverables date picker

See merge request !4
parents 01627e78 bdacfd83
......@@ -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