Skip to content

Commit

Permalink
Fix datefield to work with other form markup
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hex0id committed Aug 4, 2015
1 parent 09210ef commit 053c474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/DateField.js
Expand Up @@ -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')) {
Expand Down

0 comments on commit 053c474

Please sign in to comment.