Skip to content
Snippets Groups Projects

feat: [#3384836]: Replace deprecated jquery/once with core/once

All threads resolved!
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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');
Loading