]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/qa/script.js
Some new script (ROOT and shell) for new centralized QA
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / qa / script.js
index 37bc665e05d51ebf16adc5f64cf6e203d3203840..671fdd4f8b60ce6959a5b98064036ea96a828573 100644 (file)
@@ -76,3 +76,33 @@ function toggle(node,forceHide)
        }
     }   
 }
+
+function showSub(sub) { 
+    console.log("Will show " + sub + "/index.html");
+    var frm = document.getElementById("frame");
+    if (frm == null) {
+       console.log("No frame, will show in parent")
+       location.assign(sub + "/index.html");
+       return;
+    }
+
+    console.log("Got frame, will show in that")
+    var ifrm = document.getElementById("iframe");
+    ifrm.src = sub + "/index.html";
+    
+    frm.style.visibility = "visible";
+}
+function closeDisplay() { 
+    var frm = document.getElementById("frame");
+    if (frm == null) {
+       console.log("No frame to close");
+       return;
+    }
+
+    console.log("Closing frame");
+    frm.style.visibility = "hidden";
+}
+
+//
+// EOF
+//