Modal dialog for the popup blocker warning
[citadel.git] / webcit / static / modal.js
index f12aed2252a13474c82c27c4acfce0915d128c03..45090b92c0cdfa3f3a3fbf81d40095272b3df30a 100644 (file)
@@ -69,10 +69,12 @@ if ( isSafari ) {
 // 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) {