[Midnightbsd-cvs] mports: run.tmpl: Use the anchor to make the status display work with
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Mon Apr 21 13:32:20 EDT 2008
Log Message:
-----------
Use the anchor to make the status display work with forwards and backwards
buttons.
Modified Files:
--------------
mports/Tools/magus/www/tmpls:
run.tmpl (r1.2 -> r1.3)
-------------- next part --------------
Index: run.tmpl
===================================================================
RCS file: /home/cvs/mports/Tools/magus/www/tmpls/run.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -L Tools/magus/www/tmpls/run.tmpl -L Tools/magus/www/tmpls/run.tmpl -u -r1.2 -r1.3
--- Tools/magus/www/tmpls/run.tmpl
+++ Tools/magus/www/tmpls/run.tmpl
@@ -1,5 +1,14 @@
<TMPL_INCLUDE NAME="header.tmpl">
+<script>
+ window.onload = function () {
+ if (location.hash.length > 0) {
+ var status = location.hash.substr(1, location.hash.length);
+ showPorts(<TMPL_VAR NAME="id">, status);
+ }
+ };
+</script>
+
<h2>Run <TMPL_VAR name="id"></h2>
<table class="run-summary">
@@ -21,7 +30,7 @@
<ul class="stats">
<TMPL_LOOP NAME="status_stats">
<li>
- <a class="<TMPL_VAR NAME="status">" href="#" onclick="return showPorts(<TMPL_VAR NAME="id">, '<TMPL_VAR NAME="status">');">
+ <a class="<TMPL_VAR NAME="status">" href="#<TMPL_VAR NAME="status">" onclick="showPorts(<TMPL_VAR NAME="id">, '<TMPL_VAR NAME="status">');">
<TMPL_VAR NAME="status"></a>:
<TMPL_VAR NAME="count">
</li>
More information about the Midnightbsd-cvs
mailing list