New to Bootstrap and having some issues with accordion. Hoping someone would help me resolve it.
Basically I have an empty accordion and a drop down menu. Every time a selection made in the drop down menu, it is added to the accordion, with full .accordion-group
mark up, but with empty .accordion-body
div. After that this accordion-group set as droppable and .ui-droppable
class is automatically added.
After that I am able to drag and drop a bunch of other divs into the .accordion-group
and those divs are appended to .accordion-body
of this particular group. This part works fine, however, as soon as i click to expand any given .accordion-group
, .ui-droppable
class gets stripped from ALL of them.
How do I stop it from removing .ui-droppable
class??
Steps to reproduce:
Use html markup from Bootstrap page: (For some reason I am unable to format HTML as code here by indenting it with 4 spaces,so im just pasting the link to it) http://twitter.github.com/bootstrap/javascript.html#collapse
Add JS, which makes groups droppable
$('#accordion2').find('.accordion-group').each(function() { $(this).droppable(); });
Inspect elements to make sure
.ui-droppable
class is setClick to expand a group. Any group.
Inspect elements.
.ui-droppable
has been stipped from ALL of them