Mercurial > hg > soundsoftware-site
annotate public/javascripts/datepicker.js @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | 261b3d9a4903 |
children |
rev | line source |
---|---|
Chris@1464 | 1 function beforeShowDatePicker(input, inst) { |
Chris@1464 | 2 var default_date = null; |
Chris@1464 | 3 switch ($(input).attr("id")) { |
Chris@1464 | 4 case "issue_start_date" : |
Chris@1464 | 5 if ($("#issue_due_date").size() > 0) { |
Chris@1464 | 6 default_date = $("#issue_due_date").val(); |
Chris@1464 | 7 } |
Chris@1464 | 8 break; |
Chris@1464 | 9 case "issue_due_date" : |
Chris@1464 | 10 if ($("#issue_start_date").size() > 0) { |
Chris@1464 | 11 default_date = $("#issue_start_date").val(); |
Chris@1464 | 12 } |
Chris@1464 | 13 break; |
Chris@1464 | 14 } |
Chris@1464 | 15 $(input).datepicker("option", "defaultDate", default_date); |
Chris@1464 | 16 } |