Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Jul 2012 at 21:58 UTC
Updated:
8 Oct 2025 at 22:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kiphaas7 commentedBONUS: Investigate if adding basic events and detach makes sense, as described in #1763812: [META] Provide complete attach/detach with basic events.
Comment #2
nod_tag
Comment #3
rballou commentedThe following modules use the summary functionality provided by `form.js`:
A couple questions regarding how to handle updating their library information:
Comment #4
nod_1. don't think so, i'd have to dig into but it's a small thing.
2. yes
:)
Comment #5
rballou commentedSweet, figured out how the drupal.form bit worked :)
Anyway, here's an initial patch that: removes the summary jQuery code to it's own file,
core/misc/drupal.summary.js; updates the system library info; updates the modules above so that there library info calls include the new file; and changes the bindings in the summary code to on/off calls. I have not rolled out any updates for the other two pieces of form.js code. Also I only addeddrupal.summaryas dependencies, I did not check if they code was using the other functionality and removedrupal.formas needed.I currently have this code push out to github at: https://github.com/robballou/drupal/tree/8.x-form-js
Comment #6
nod_#5: 1685146-refactor-form-js.patch queued for re-testing.
Comment #8
nod_Just posting the code I have so far, needs some more work but it's a good re-start. The changes made in #5 are not included in this patch, but they should!
this patch will fix #1636992: form.js' formUpdated event is unreliable/incomplete and #1515734: form.js' 'formUpdated' behavior is slow because it binds to each element rather than delegating also, not closing yet, some people might complain about the scope creep :þ
This patch needs to be applied on top of #1705618-26: Double click prevention on form submission.
Comment #9
wim leersSo is #1636992: form.js' formUpdated event is unreliable/incomplete then a duplicate of this one?
In either case, this blocks #1636992, and #1636992 is critical, so marking this as critical.
Comment #10
nod_Comment #11
nod_Should have left that one as critical to get people working on it :þ
Comment #15
andypostComment #25
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!