Sha256: eed2995635a283c8c968514da7f5d893c31a92a7ed16231ca228222be45234eb
Contents?: true
Size: 570 Bytes
Versions: 15
Compression:
Stored size: 570 Bytes
Contents
// Submit GET forms with turbolinks (function($) { if (window.Turbolinks && window.Turbolinks.supported) { window.Thredded.onPageLoad(() => { $('[data-thredded-turboform]').on('submit', function(evt) { evt.preventDefault(); Turbolinks.visit(this.action + (this.action.indexOf('?') === -1 ? '?' : '&') + $(this).serialize()); // On mobile the soft keyboard doesn't won't go away after the submit since we're submitting with // Turbolinks. Hide it: window.Thredded.hideSoftKeyboard(); }); }); } })(jQuery);
Version data entries
15 entries across 15 versions & 1 rubygems