ZF-9503: Give DOM id to the item <li> in JQuery TabContainer...
Description
It may be userfull to have DOM id for the TabContainer
item, so it's easier to manipulate it with jQuery .... I change ZendX/JQuery/View/Helper/TabContainer.php @@ -97,9 +97,9 @@ $frag_name = sprintf('%s-frag-%d', $attribs['id'], $fragment_counter++); $opts = $v['options']; if(isset($opts['contentUrl'])) { - $list .= ''.$v['name'].''.PHP_EOL;
+ $list .= ''.$v['name'].''.PHP_EOL;
} else {
- $list .= ''.$v['name'].''.PHP_EOL;
+ $list .= ''.$v['name'].''.PHP_EOL;
$html .= ''.$v['content'].''.PHP_EOL;
}
}
Comments
Posted by Liam Damewood (liam) on 2010-05-20T17:54:54.000+0000
The id should be set to something like "setname_number" in order to be compatible with the serialize method in Sortable. Alternatively, perhaps the id could be overridden in $opts?