handle get forms in addition to links
Author: grosserCreated Apr 29, 2017Updated Apr 16, 2021
Labelsenhancement
would be nice to have a standardized solution for get forms ... atm using this to make all get forms use turbolinks
// https://github.com/turbolinks/turbolinks/issues/272
// support remote get forms ... since turbolinks fails to do this properly
$(document).on('submit', 'form[method=get][data-remote=false]', function(e) {
e.preventDefault();
var form = $(this);
Turbolinks.visit(form.attr("action") + form.serialize());
});
Source: turbolinks/turbolinks