Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 May 2012 at 16:18 UTC
Updated:
29 Jul 2014 at 20:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostPatch updates to version 3.09
PS: Related issues
#956186: Allow AJAX to use GET requests
#1414510-36: Remove drupal_reset_static for drupal_html_id() when form validation fails
#1575060: ajax_html_ids are broken for forms with file element (encoding=multipart/form-data)
Comment #2
attiks commentedI just ran into an issue (#1669960: Clientside Validation 1.33 fails on IE) with clientside_validation on D7, to support some functionality we added new 'methods' to javascript Array (Array.prototype.indexOf, Array.prototype.lastIndexOf) for IE < 9
The problem is that the current jquery.form.js version cannot handle this and IE < 9 users are getting a cryptic error message, so we need to backport this to Drupal 7 as well, pretty please.
Comment #3
nod_JS crashes before sending anything for me on FF.
Comment #4
attiks commented@nod_ care to share some more info: page, browser version, ...
Can you test on http://testswarmcv.h001.attiks.com/node/add/article it contains an override of jquery.form.js and works in FF13
Comment #5
nod_Yeah sorry, Tested your link:
works on Opera 12
on FF 13.0.1 (linux) I get after clicking on the upload button:
Don't really have time to dig into it ATM. Can test/review though :)
Comment #6
attiks commented@nod_ known problem, see #1575060: ajax_html_ids are broken for forms with file element (encoding=multipart/form-data)
Possible fix in jquery.form.js, fixing FF problem but untested:
Comment #7
attiks commentedFYI: there's already a PR: https://github.com/malsup/form/pull/201/files
Comment #8
attiks commentedFYI: I committed the fix to clientside_validation on it's working in FF, see http://drupalcode.org/project/clientside_validation.git/commit/481c9e6 and http://testswarmcv.h001.attiks.com/node/add/article
Comment #9
nod_Nice :) thanks for the follow up upstream.
Comment #10
attiks commented#7 got committed upstream and is included in the latest version at http://malsup.github.com/jquery.form.js
Patch needs to be rerolled
Comment #11
andypostD7 backport of #1575060: ajax_html_ids are broken for forms with file element (encoding=multipart/form-data) commited so here's a re-roll for current version
Comment #13
andypostWe should close #1575060: ajax_html_ids are broken for forms with file element (encoding=multipart/form-data) and revisit the issue before release to make sure we are using latest version
Comment #14
andypostcurrent version is
3.39.0-2013.07.31Comment #15
andyposttaggin
Comment #16
andypostComment #17
nod_That works, thanks :)
Comment #18
webchickCan someone give details on what they manually tested with this patch?
Comment #19
nod_Tested:
and that's pretty much everywhere the library is used.
Comment #20
webchickAwesome, thanks!
Committed and pushed to 8.x.
Marking for backport to D7, but that'd be David's call.
Comment #21
mustanggb commentedPatch is in D8, untagging.
Comment #22
andypostOnce patch is in 8.x I still not sure it's ok for 7.x to upgrade shipped library, there's https://drupal.org/project/jquery_form_update for that
Anyway this library should be updated to the latest release of 8.x
Comment #23
David_Rothstein commentedRight, isn't that what https://drupal.org/project/jquery_update is for?
To update this in core, we would basically need to pore over the release notes and also do a line-by-line code review to make sure there are no API changes. Because we don't really know how contrib modules are using the library. I am not volunteering for that line-by-line review :)
Also, http://malsup.com/jquery/form/#faq suggests that the latest version isn't even compatible with the version of jQuery that ships with Drupal 7 core...
Comment #24
mustanggb commentedOkay so in 7.x we're leaving this to contrib.
Postponing because this issue isn't blocking anything so to avoid wasting time we can just grab and test the latest version nearer to release.
Comment #25
catch3.50 now.
Comment #26
andypostComment #27
andypostnew version, and it seems there's no more dependency on 'jquery.cookie'
Comment #28
nod_Tested things from #19, everything still works.
Comment #29
webchickNo longer applies.
Comment #30
rajendar reddy commentedUpdating patch with reroll. Please review.
Comment #31
andypostback to rtbc
Comment #32
catchCommitted/pushed to 8.x, thanks!