Fix datefield to work with other form markup

Changed onClick selector to catch any date field, so it will work with "nonstandard" form markups like adding new lines from https://github.com/silverstripe-australia/silverstripe-gridfieldextensions
This commit is contained in:
hex0id 2015-08-04 06:31:19 -04:00
parent 09210efbc0
commit 053c47499e

View File

@ -26,7 +26,7 @@
}
});
$(document).on("click", ".field.date input.text,.fieldholder-small input.text.date", function() {
$(document).on("click", "input.text.date", function() {
$(this).ssDatepicker();
if($(this).data('datepicker')) {