Commit cf766142 authored by EXT Hélène David's avatar EXT Hélène David
Browse files

added restriction to end date

parent dedf5d3b
......@@ -49,6 +49,8 @@ root.controller('EventNewCtrl', ['$scope','$http' ,'$stateParams','$eventsFactor
$("#myDate" ).datepicker({dateFormat: 'yy-mm-dd', minDate: 0, onSelect: function(date) {
newEventCtrl.newEvent.myDate = $("#myDate" ).val();
}, onClose : function(date) {
$("#myDateEnd" ).datepicker("option", "minDate", date);
$("#myDateEnd" ).datepicker({dateFormat: 'yy-mm-dd', onSelect: function(date) {
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