Title, description are lost
surge_martin - October 17, 2007 - 15:13
| Project: | jQuery Interface Sortable |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
When the element type is switched to markup, the title and description end up being ignored. This can be remedied by adding the following code into interface_sortable_process somehwere before $element is returned:
if ($element['#description']) {
$markup = '<p>'. $element['#description'] .'</p>'. $markup;
}
if ($element['#title']) {
$markup = '<h3>'. $element['#title'] .'</h3>'. $markup;
}
$element['#value'] = $markup;