Opened 2 years ago
Closed 21 months ago
#3535 closed Enhancement (fixed)
Auto-add class to form when elgg_view_form is used
| Reported by: | ewinslow | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Elgg 1.8.0 |
| Component: | Core | Version: | 1.8 Beta |
| Severity: | minor | Keywords: | gsoc-ajax |
| Cc: | brett@… | Difficulty: | trivial |
Description
Could pass "class" => "elgg-form-$action" with non-alphanum characters in $action converted to "-".
Use case is related to ajaxification: for example might want to ajax submit all forms corresponding to a particular action and give them the same callbacks or options or whatever (river comments being a good example).
Change History (3)
comment:1 Changed 23 months ago by ewinslow
- Milestone changed from Needs Review to Elgg 1.8.0
comment:2 Changed 22 months ago by blacktooth
- Keywords gsoc-ajax added
comment:3 Changed 21 months ago by Brett Profitt
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Fixes #3535. elgg_view_form() automatically adds elgg-form-action-name.