isere-cd38: ens-calendar: trigger change event when day is selected (#51224)

This commit is contained in:
Thomas Jund 2021-02-22 15:10:58 +01:00 committed by Thomas NOEL
parent 223b8a1b7d
commit d2b4d1e3c9
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,7 @@ $(function() {
e.preventDefault();
$day_btns.removeClass(activated_day_class);
$options.eq(this.dataset.optionIdx).prop('selected', true);
$select.trigger('wcs:change');
$(this).addClass(activated_day_class);
});
};
@ -250,6 +251,7 @@ $(function() {
$('<option value=""></option>').prependTo($select);
$options = $select.find('option');
init();
$select.trigger('wcs:change');
});
});