toggleModal() now explicitly accepts an argument of 1 (on) or 0 (off)
[citadel.git] / webcit / static / t / paging / failed_hook.html
index 46d983c3dda5307e5ecdf4a5fdd46b138f8f9ffc..98ae11373509664a22906350490186c17e0c9c1e 100644 (file)
@@ -1,7 +1,7 @@
 <script type="text/javascript">
 function PopUpFailed() {
 
-       $('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);
+       $('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(0);'>OK</a></h2></div>";
+       toggleModal(1);
 }
 </script>