aboutsummaryrefslogtreecommitdiffstats
path: root/config/imspector
diff options
context:
space:
mode:
authorBill Marquette <bill.marquette@gmail.com>2009-03-10 22:25:44 -0500
committerBill Marquette <bill.marquette@gmail.com>2009-03-10 22:26:15 -0500
commit327fa645ee0267873bbca9e9e0c9a545d43ad922 (patch)
treea92143e0c58a72589066ca8174347dff87138f00 /config/imspector
parent2e0c1cc991c4cc2e5ea619941cf0eedaf2777423 (diff)
downloadpfsense-packages-327fa645ee0267873bbca9e9e0c9a545d43ad922.tar.gz
pfsense-packages-327fa645ee0267873bbca9e9e0c9a545d43ad922.tar.bz2
pfsense-packages-327fa645ee0267873bbca9e9e0c9a545d43ad922.zip
Revert "start migrating javascript to prototype"
This reverts commit e33637e6eded91962267b364ec48a74ee1ff835c.
Diffstat (limited to 'config/imspector')
-rw-r--r--config/imspector/services_imspector_logs.php36
1 files changed, 17 insertions, 19 deletions
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();
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
-<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/prototype.js"></script>
-<script type="text/javascript" language="javascript" src="/javascript/scriptaculous/scriptaculous.js"></script>
<?php include("fbegin.inc"); ?>
<?php if ($savemsg) print_info_box($savemsg); ?>
<div id="mainlevel">
@@ -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&section=" + 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 +=
"<div id='" + a[1] + "_t' style='width: 100%; background-color: $list_protocol_bgcolor; color: $list_protocol_color;'>" + a[1] + "</div>" +
"<div id='" + a[1] + "' style='width: 100%; background-color: $list_local_bgcolor;'></div>";
}
- if (!$(a[1] + "_" + a[2])) {
+ if (!document.getElementById(a[1] + "_" + a[2])) {
var imageref = "";
if (a[0]) imageref = "<img src='" + a[0] + "' alt='" + a[1] + "'/>";
- $(a[1]).innerHTML +=
+ document.getElementById(a[1]).innerHTML +=
"<div id='" + a[1] + "_" + a[2] + "_t' style='width: 100%; color: $list_local_color; padding-left: 5px;'>" + imageref + a[2] + "</div>" +
"<div id='" + a[1] + "_" + a[2] + "' style='width: 100%; background-color: $list_remote_bgcolor; border-bottom: solid 1px $list_end_bgcolor;'></div>";
}
- 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 +=
"<div id='" + a[1] + "_" + a[2] + "_" + a[3] + "_t' style='width: 100%; color: $list_remote_color; padding-left: 10px;'>" + a[3] + "</div>" +
"<div id='" + a[1] + "_" + a[2] + "_" + a[3] + "' style='width: 100%;'></div>";
}
- 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 +=
"<div id='" + a[1] + "_" + a[2] + "_" + a[3] + "_" + a[4] +
"' style='width: 100%; color: $list_convo_color; cursor: pointer; padding-left: 15px;' onClick=" +
'"' + "setsection('" + a[1] + "|" + a[2] + "|" + a[3] + "|" + a[4] + "');" + '"' + "' + >&raquo;" + a[4] + "</div>";
@@ -238,21 +236,21 @@ function updatepage(str)
if (!details[1]) title = "&nbsp;";
if (!parts[2]) parts[2] = "&nbsp;";
- $('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 );
}