I'm experiencing difficulties with fieldsets inside of a jQuery dialog retrieved via AJAX from question editing page. As I understood, to make them expandable/collapsible, there's a script /lib/form/yui/shortforms/shortforms.js which modifies the html in some way. I added some alerts to the script and noticed that it tries to modify the question editing page for the second time, not my ajax dialog shown later.
Is there a way to make the script modify the proper page, i.e. my dialog?