Closed (won't fix)
Project:
Asaf (ajax submit for any form)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2013 at 05:07 UTC
Updated:
2 Aug 2013 at 22:29 UTC
I am seeing element ID for all of my form elements with a --2 or __2 appended to the end. Is this from the "areas" handling? Could you handle that with a data-property on those elements instead? i.e. data-formid=2?
If you aren't seeing this behavior, maybe it is because I am using panels to node_edit override?
Comments
Comment #1
taldy commentedHello,
Actually I can't add 'data-formid=2' attribute because this delta calculates for each element independently especially to avoid HTML ID duplicates. It based on already existing element IDs on the page. To avoid this problem I propose you to use classes instead of IDs, because duplicate classes isn't a problem, and so element classes will never be changed automatically, without your wish.
But to make makeup simpler I added area name based class for the area wrapper (for example: asaf-area3-area-wrapper) and data-attribute data-asaf-area-name with the name of area to the area element.
Currently this changes placed in 7.x-1.x-dev