-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update /core/misc/jquery.form.js to the latest version (4.2.1). #2574
Comments
Thanks @klonos! Great idea to update this library. This should go into the next minor release (1.7.0) as it will likely add new APIs for that version of the library. In the PR, don't forget to update the version number in We'll also need verification of several manual JavaScript-related tasks: Uploading a file, the "Add more" button for fields, and the Views AJAX-based exposed filters seem to be the primary places where we use this library. |
Set the milestone so it doesn't slip under the radar 😉
Updated the PR. I went with the GitHub project URL (https://github.com/jquery-form/form) for
Setting the PR to NR for the code changes part. Feel free to change back to NW and I'll get to that soon as I have more time. |
New version of the library released. New PR upcoming... |
This is targeted for 1.7.0, so there's still time, but before merging we should keep an eye on https://www.drupal.org/node/2860158 and jquery-form/form#521 (and by "we" I mean "I" 😄 ) ...plus test everything that @quicksketch suggested in #2574 (comment) and everything that users in the d.org issue reported broken. |
...it seems that in d.org they are using jQuery form 4.0.1 and they try to mitigate the issues by conditionally loading that version if jQuery >= 1.8 or 1.9. We on the other hand are using 1.11.0, so the d.org issue might not apply to Backdrop 😉 ...we should still check though just in case.. |
This issue being discussed on d.org was a regression in jQuery Form that caused spaces in the jQuery Form has been updated to v4.2.1 with fix from @MarkCarver. Form v4 is compatible with jQuery 1.7 through 1.11. Form v4.2.0 added support for jQuery 1.12+ and jQuery 2 and 3. |
Thanx for taking the time to explain @kevindb. New PR with the updated 4.2.1: backdrop/backdrop#1822 @quicksketch do you think that it's a good idea to be including jquery.form.min.js.map along with the minified library for better DX? Let me know and I'll add it. |
I think we can go without and be just fine. It's pretty uncommon in my own experience to be debugging directly within jQuery or a jQuery plugin. A developer could always drop the missing files in if truly needed, though most devs I've seen faced with this issue would just drop a completely uncompressed version into the same place. Not fancy but effective. With the Drupal community already having tested 4.2.1 and my own validation in the test sandbox showing no issues, I think this is good for merge. I've merged backdrop/backdrop#1822 into 1.x for the next minor release, 1.7.0. Thanks @klonos for the PR. And wow @kevindb the jQuery Forms maintainer; here checking in!! Awesome! Great work maintaining the library. I had a hand in putting it in Drupal ages ago, it's fantastic and unusual to have such longevity in a library. Kudos to you. |
@quicksketch ...while in my previous 2 PRs for v 4.1.0 and 4.2.0 I did update the respective entry in system.module, I failed to do so in the last PR (the one that got merged). Here's a follow-up PR for it: backdrop/backdrop#1833 Sorry 😄 |
No problem! Thanks I should have caught that. Merged the follow-up at backdrop/backdrop#1833 for 1.7.0. |
...and I should have gotten it right in the first place. No worries, we're only human. |
This has not been updated since 2014.
New GitHub home of the project: https://github.com/jquery-form/form
Direct link to the minified file: https://github.com/jquery-form/form/raw/master/dist/jquery.form.min.js
Release log: https://github.com/jquery-form/form/releases
PR by @klonos: backdrop/backdrop#1805(4.1.0)PR by @klonos: backdrop/backdrop#1816(4.2.0)PR by @klonos: backdrop/backdrop#1822 (4.2.1)
The text was updated successfully, but these errors were encountered: