Commit 07baeded authored by MikaT's avatar MikaT Committed by Neslee
Browse files

Issue #2858486 by tracipotocnik, MikaT, tostinni: AJAX autosubmit not working...

Issue #2858486 by tracipotocnik, MikaT, tostinni: AJAX autosubmit not working with jQuery Datepicker
parent b2ad83c5
......@@ -69,6 +69,18 @@
$target.closest('form').find('[data-bef-auto-submit-click]').click();
}
// Add autosubmit to datefields.
var dateInputList = $('.views-exposed-form .form-date.datepicker-here');
$(dateInputList).each(function(){
let me = this;
// Attach to the datepicker
$(me).datepicker({
onHide: function(dp, animationCompleted) {
triggerSubmit($(me));
}
});
});
// The change event bubbles so we only need to bind it to the outer form
// in case of a full form, or a single element when specified explicitly.
$(selectors, context).addBack(selectors).once('bef-auto-submit').on('change keyup keypress', function (e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment