croogo/croogo — pull request #29 by real34 (2011-10-30 16:07:57+00:00)
Title: Adding admin tabs with a name like "Foo / Bar" for nodes is not working as expected

Modified dom id generation algorithm to better deal with tab names (like "Foo / Bar") without breaking ui.tabs

## To reproduce

* Add a new tab to nodes/admin_add / edit: `Croogo::hookAdminTab('Nodes/admin_add', 'Foo / Bar', 'foobar.admin_tab_node');`
* Browse the Node creation form

## What happens

* The fields of the custom admin tab are shown below the first tab ones

## Expected

* Fields must only appear when clicking on the custom tab

## Notes

It is caused because of an invalid dom id given to the wrapping div. Using `strtolower` is not sufficient to deal with special chars like " /@#~" etc ...