Modal dialog doesn't work
I have found the solution.

You need to add these 3 lines of code to the page where the link &lt;a href="/my_module/nojs/test-page" class="ctools-use-modal"&gt;Open modal&lt;/a&gt; is displaying.

ctools_include('ajax');
ctools_include('modal');
ctools_modal_add_js();