Commit 40a9ab93 authored by chris's avatar chris

Cleaning obsolete javascript.

parent 0e5e1311
......@@ -40,13 +40,6 @@
var this_id = $(this).attr("id"); // current inputs id
var new_id = this_id +1; // a new id
$(this).attr("id", new_id); // change to new id
// The following if allows calendar to start at given date
/*var data = $(this).val()
if (data) {
var mindate = data.convertToDate();
} else {
var mindate = '+1d'
}*/
$(this).datepicker({
dateFormat: 'dd-mm-yy',
//showButtonPanel: true,
......@@ -54,6 +47,7 @@
buttonImage: '/static/images/calendar.png',
buttonImageOnly: true,
minDate: '+1d',
gotoCurrent: true,
});
// Remove hasDatepicker class: not to be touched next time function is called
$(this).removeClass('hasdatepicker');
......
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