From 327fa645ee0267873bbca9e9e0c9a545d43ad922 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Tue, 10 Mar 2009 22:25:44 -0500 Subject: Revert "start migrating javascript to prototype" This reverts commit e33637e6eded91962267b364ec48a74ee1ff835c. --- config/imspector/services_imspector_logs.php | 36 +++++++++++++--------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'config/imspector') diff --git a/config/imspector/services_imspector_logs.php b/config/imspector/services_imspector_logs.php index 14881bc6..fce9b892 100644 --- a/config/imspector/services_imspector_logs.php +++ b/config/imspector/services_imspector_logs.php @@ -151,8 +151,6 @@ include("head.inc"); //echo $pfSenseHead->getHTML(); ?> - -
@@ -190,7 +188,7 @@ function xmlhttpPost() updatepage(self.xmlHttpReq.responseText); } - $('im_status').style.display = "inline"; + document.getElementById('im_status').style.display = "inline"; self.xmlHttpReq.send("mode=render§ion=" + section); } @@ -206,25 +204,25 @@ function updatepage(str) if (!a[1] || !a[2] || !a[3]) continue; /* create titling information if needed */ - if (!$(a[1])) { - $('im_convos').innerHTML += + if (!document.getElementById(a[1])) { + document.getElementById('im_convos').innerHTML += "
" + a[1] + "
" + "
"; } - if (!$(a[1] + "_" + a[2])) { + if (!document.getElementById(a[1] + "_" + a[2])) { var imageref = ""; if (a[0]) imageref = "" + a[1] + ""; - $(a[1]).innerHTML += + document.getElementById(a[1]).innerHTML += "
" + imageref + a[2] + "
" + "
"; } - if (!$(a[1] + "_" + a[2] + "_" + a[3])) { - $(a[1] + "_" + a[2]).innerHTML += + if (!document.getElementById(a[1] + "_" + a[2] + "_" + a[3])) { + document.getElementById(a[1] + "_" + a[2]).innerHTML += "
" + a[3] + "
" + "
"; } - if (!$(a[1] + "_" + a[2] + "_" + a[3] + "_" + a[4])) { - $(a[1] + "_" + a[2] + "_" + a[3]).innerHTML += + if (!document.getElementById(a[1] + "_" + a[2] + "_" + a[3] + "_" + a[4])) { + document.getElementById(a[1] + "_" + a[2] + "_" + a[3]).innerHTML += "
»" + a[4] + "
"; @@ -238,21 +236,21 @@ function updatepage(str) if (!details[1]) title = " "; if (!parts[2]) parts[2] = " "; - $('im_status').style.display = "none"; - var bottom = parseInt($('im_content').scrollTop); - var bottom2 = parseInt($('im_content').style.height); + document.getElementById('im_status').style.display = "none"; + var bottom = parseInt(document.getElementById('im_content').scrollTop); + var bottom2 = parseInt(document.getElementById('im_content').style.height); var absheight = parseInt( bottom + bottom2 ); - if (absheight == $('im_content').scrollHeight) { + if (absheight == document.getElementById('im_content').scrollHeight) { moveit = 1; } else { moveit = 0; } - $('im_content').innerHTML = parts[2]; + document.getElementById('im_content').innerHTML = parts[2]; if (moveit == 1) { - $('im_content').scrollTop = 0; - $('im_content').scrollTop = $('im_content').scrollHeight; + document.getElementById('im_content').scrollTop = 0; + document.getElementById('im_content').scrollTop = document.getElementById('im_content').scrollHeight; } - $('im_content_title').update = title; + document.getElementById('im_content_title').innerHTML = title; the_timeout = setTimeout( "xmlhttpPost();", 5000 ); } -- cgit v1.2.3