Dismissing the popup-is-blocked window now opens it (hopefully)
authorArt Cancro <ajc@citadel.org>
Tue, 30 Nov 2010 09:04:37 +0000 (04:04 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 30 Nov 2010 09:04:37 +0000 (04:04 -0500)
webcit/static/t/paging/failed_hook.html

index 98ae11373509664a22906350490186c17e0c9c1e..200c39a30ad6fa7bba3dfe52c3fa8bdedb329098 100644 (file)
@@ -1,7 +1,13 @@
 <script type="text/javascript">
+
+function PopUpExplicit() {
+       window.open('static/instant_messenger.html', 'CTDL_MESSENGER', 'width=700,height=400');
+       toggleModal(0);
+}
+
 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(0);'>OK</a></h2></div>";
+       $('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:PopUpExplicit();'>OK</a></h2></div>";
        toggleModal(1);
 }
 </script>