** Changed in: aikiframework
Assignee: (unassigned) => Christopher Adams (christopheradams)
--
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/789295
Title:
Every form is given the same css id
Status in Aiki Framework:
Confirmed
Bug description:
Every form output by Aiki gets the same id:
<div id="form_container"> ... </div>
If a page has multiple forms, all of them will have the same id, which
is not good practice.
The id needs to be something unique. A good candidate would be the
name of the form according to the aiki forms admin interface, e.g.:
<div id="aiki_users"> ... </div>
We'd have to check if Aiki relies on the value "form_container" to
interact with that part of the DOM via JavaScript, and update those
parts of the code accordingly if the form id's become dynamic.
A related problem is that the <form> element also gets an attribute
like:
id="new_record_form"
which JavaScript code such as for the uploader will bind to:
uploader.bind(\'UploadProgress\', function() {
if (uploader.total.uploaded == uploader.files.length)
$(\'#new_record_form\').submit();
});
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help : https://help.launchpad.net/ListHelp