Posted by mandclu on October 17, 2007 at 3:13pm
| Project: | jQuery Interface Sortable |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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;