Modal dialog for the popup blocker warning
[citadel.git] / webcit / static / t / paging / failed_hook.html
index d814fcb6aa08c4c290b5c377dfafd661cb5ee867..46d983c3dda5307e5ecdf4a5fdd46b138f8f9ffc 100644 (file)
@@ -1,5 +1,7 @@
 <script type="text/javascript">
 function PopUpFailed() {
- alert("<?_("You have one or more instant messages waiting, but the Citadel Instant Messenger window failed to open.  This is probably because you have a popup blocker installed.  Please configure your popup blocker to allow popups from this site if you wish to receive instant messages.")>");
+
+       $('md-content').innerHTML = "<div align='justify'><?_("You have one or more instant messages waiting, but the Citadel Instant Messenger window failed to open.  This is probably because you have a popup blocker installed.  Please configure your popup blocker to allow popups from this site if you wish to receive instant messages.")></div><br><br><div align='center'><h2><a href='javascript:toggleModal(false);'>OK</a></h2></div>";
+       toggleModal(true);
 }
 </script>