// need to do some special stuff to handle MSIE.
-var toggleModal = function () {
+var toggleModal = function (b) {
html.className=modalShowing?'':'modal';
- modalShowing = !modalShowing;
+
+ modalShowing = b;
+
if (modalShowing) {
dialog.focus();
} else if (focusedElement) {
<body>
<center>
<h1><a href="termquit"><img src="static/logoff_32x.gif" border="0"> <?_("Log off")></a></h1>
-<h1><a href="javascript:toggleModal();"><img src="static/closewindow.gif" height="32" width="32" border="0"> <?_("Cancel")></a></h1>
+<h1><a href="javascript:toggleModal(false);"><img src="static/closewindow.gif" height="32" width="32" border="0"> <?_("Cancel")></a></h1>
</center>
</body>
</html>
<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>
{
method: 'get',
onSuccess: function(cl_success) {
- toggleModal();
+ toggleModal(true);
}
}
);