* Fixed some JavaScript syntax that JSLint [http://www.jslint.com] complained about
authorArt Cancro <ajc@citadel.org>
Thu, 8 Jan 2009 22:52:01 +0000 (22:52 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 8 Jan 2009 22:52:01 +0000 (22:52 +0000)
webcit/static/wclib.js

index 26a5f73f470e09f46ba0af9ef5fe30ea6f324877..fc5b56dead664d19978f38f0f0b84c7bdecbd5d0 100644 (file)
@@ -9,10 +9,14 @@
 var browserType;
 var room_is_trash = 0;
 
-if (document.layers) {browserType = "nn4"}
-if (document.all) {browserType = "ie"}
+if (document.layers) {
+       browserType = "nn4";
+}
+if (document.all) {
+       browserType = "ie";
+}
 if (window.navigator.userAgent.toLowerCase().match("gecko")) {
-       browserType= "gecko"
+       browserType= "gecko";
 }
 
 var ns6=document.getElementById&&!document.all;
@@ -50,12 +54,15 @@ function extract_token(source_string, token_num, delimiter) {
 
 // This code handles the popups for important-messages.
 function hide_imsg_popup() {
-       if (browserType == "gecko" )
+       if (browserType == "gecko") {
                document.poppedLayer = eval('document.getElementById(\'important_message\')');
-       else if (browserType == "ie")
+       }
+       else if (browserType == "ie") {
                document.poppedLayer = eval('document.all[\'important_message\']');
-       else
+       }
+       else {
                document.poppedLayer = eval('document.layers[\'`important_message\']');
+       }
 
        document.poppedLayer.style.visibility = "hidden";
 }