Skip to content
Snippets Groups Projects
Commit 9c751804 authored by Owen Bush's avatar Owen Bush
Browse files

Fix excluded dates not defaulting to start date

parent 82a2f0d5
No related branches found
No related tags found
1 merge request!75feat: [#3384836]: Replace deprecated jquery/once with core/once
......@@ -65,7 +65,7 @@
*/
Drupal.behaviors.recurring_events_excluded_included_dates = {
attach: function (context, settings) {
$(once('edit_excluded_date', $('#edit--dates-wrapper, #edit-included-dates-wrapper').find('input.form-date'))).on('change', function (e) {
$(once('edit_excluded_date', $('#edit-excluded-dates-wrapper, #edit-included-dates-wrapper').find('input.form-date'))).on('change', function (e) {
if ($(this).attr('name').includes('[value][date]')) {
var start_date = this;
var parent = $(this).closest('.form-wrapper');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment