tventi: fix settings in stats - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 5d434a3ff3426bfdc1a98da2543b1345a475ba67
(DIR) parent 5c9343753fce6d3c9465db301743d07644c02dc7
(HTM) Author: David du Colombier <0intro@gmail.com>
Date: Fri, 20 Jan 2012 13:13:30 -0500
venti: fix settings in stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5558054
Diffstat:
M src/cmd/venti/srv/www/stats.html | 1 +
M src/cmd/venti/srv/www/stats.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/venti/srv/www/stats.html b/src/cmd/venti/srv/www/stats.html
t@@ -6,6 +6,7 @@
<script language="javascript" src="status.js"></script>
</head>
<body bgcolor=#ffffff>
+ <iframe name="hidden" frameborder="0" height="0"></iframe>
<center>
<b>venti.your-domain.com – venti server statistics</b>
(DIR) diff --git a/src/cmd/venti/srv/www/stats.js b/src/cmd/venti/srv/www/stats.js
t@@ -395,5 +395,5 @@ function set(name, value) {
eval(name+"= \""+value+"\"")
redrawsettings()
// Works in FireFox, not in Safari
- parent.hidden.location.href = "/set/"+name+"/"+value
+ parent.hidden.location.href = "/set?name="+name+"&value="+value
}