Open new jquery ui dialog in add/edit block - apply bootstrap styles?

Permalink
Hey devs!

Can somebody help me out regarding opening new dialog windows in the add/edit block interface?

I have a div element with id="myForm" in my form_setup_html.php and I do use some bootstrap 2 styles.

I trigger it the following way:
$("#myForm").dialog({
                height: 200,
                modal: true
            });


But the bootstrap styles (css forms) are not applied in the dialog window. I guess because of cloning the content or something? Has somebody an working example for that?

Thanks in advance!

programmieraffe
 
mnakalay replied on at Permalink Best Answer Reply
mnakalay
Hi,

Try adding the following class to your div
class="ccm-ui"


it should work
programmieraffe replied on at Permalink Reply
programmieraffe
That did the trick, thank you!