Skip to content

Commit

Permalink
Merge pull request #427 from vrk-kpa/LIKA-591_fix-datepicker-autosubmit
Browse files Browse the repository at this point in the history
LIKA-591: Reimplement datepicker autosubmit
  • Loading branch information
bzar authored Feb 14, 2024
2 parents bece68c + e4d122f commit 6866d52
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ this.ckan.module('datepicker', function (jQuery, _) {

_onReady: function() {
var editor = $(this.el).datetimepicker();

if($(this.el.attr('autosubmit'))) {
editor.on('dp.change', () => {
editor.parents('form:first').submit()
});
}
}
}
});

0 comments on commit 6866d52

Please sign in to comment.