aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <bill.marquette@gmail.com>2009-03-10 01:25:21 -0500
committerBill Marquette <bill.marquette@gmail.com>2009-03-10 01:25:21 -0500
commit34a0c678b48d0e0f8ebe929551c474e0322a65de (patch)
treebe313c8154695b6dd551f63f3f15dc254b7b92c2
parent6abb9ffd8bbd42c903c31ab5bf6fe68ef1c6f1a7 (diff)
downloadpfsense-packages-34a0c678b48d0e0f8ebe929551c474e0322a65de.tar.gz
pfsense-packages-34a0c678b48d0e0f8ebe929551c474e0322a65de.tar.bz2
pfsense-packages-34a0c678b48d0e0f8ebe929551c474e0322a65de.zip
More Prototype-isms
Whitespace cleanup
-rw-r--r--config/imspector/services_imspector_logs.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/config/imspector/services_imspector_logs.php b/config/imspector/services_imspector_logs.php
index ecb8606f..f9e6d902 100644
--- a/config/imspector/services_imspector_logs.php
+++ b/config/imspector/services_imspector_logs.php
@@ -257,9 +257,14 @@ function setsection(value)
section = value;
clearTimeout(the_timeout);
xmlhttpPost();
- document.getElementById('im_content').scrollTop = 0;
- document.getElementById('im_content').scrollTop = document.getElementById('im_content').scrollHeight;
+ $('im_content').scrollTop = 0;
+ $('im_content').scrollTop = $('im_content').scrollHeight;
}
+
+document.observe('dom:loaded', function() {
+ xmlhttpPost();
+});
+
</script>
EOD;
print($zz);
@@ -271,22 +276,19 @@ print($zz);
<div style='width: 100%; text-align: right;'><span id='im_status' style='display: none;'>Updating</span>&nbsp;</div>
<table width="100%">
<tr>
- <td width="15%" bgcolor="<?=$default_bgcolor?>" style="overflow: auto; border: solid 1px <?=$border_color?>;">
- <div id="im_convos" style="height: 400px; overflow: auto; overflow-x: hidden;"></div>
- </td>
+ <td width="15%" bgcolor="<?=$default_bgcolor?>" style="overflow: auto; border: solid 1px <?=$border_color?>;">
+ <div id="im_convos" style="height: 400px; overflow: auto; overflow-x: hidden;"></div>
+ </td>
<td width="75%" bgcolor="<?=$default_bgcolor?>" style="border: solid 1px <?=$border_color?>;">
<div id="im_content_title" style="height: 20px; overflow: auto; vertical-align: top;
color: <?=$convo_title_color?>; background-color: <?=$convo_title_bgcolor?>;"></div>
- <div id="im_content" style="height: 380px; overflow: auto; vertical-align: bottom; overflow-x: hidden;"></div>
+ <div id="im_content" style="height: 380px; overflow: auto; vertical-align: bottom; overflow-x: hidden;"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
-
-<script type="text/javascript">xmlhttpPost();</script>
-
</div>
<?php include("fend.inc"); ?>
</body>