I'm building a simple module that shows a jQuery UI dialog. I have some HTML in my code but I only want to show this to users that have javascript enabled.
to give you an example here are the contents of my .module file:
function popover_init() {
drupal_add_library('system', 'ui.dialog');
drupal_add_js(drupal_get_path('module','popover') . '/popover.js', 'file');
}
?>
<div id="dialog" title="D7 jQuery dialog">
<p> bla bla bla </p>
</div>
How do I check the drupal way that javascript is enabled so I can stop my module from loading unnecessary stuff ?