aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/LXRng/Web.pm2
-rw-r--r--tmpl/release_select.tt22
-rw-r--r--webroot/.static/js/lxrng-funcs.js8
3 files changed, 10 insertions, 2 deletions
diff --git a/lib/LXRng/Web.pm b/lib/LXRng/Web.pm
index 2c72282..46b741f 100644
--- a/lib/LXRng/Web.pm
+++ b/lib/LXRng/Web.pm
@@ -240,7 +240,7 @@ sub source {
'pjx_load_file' => '',
'pjx_load_fragment' => '',
'pjx_releases' => '');
- $pjx->js_encode_function('encodeURIComponent');
+ $pjx->js_encode_function('encode_lxrng');
if ($context->prefs and $context->prefs->{'navmethod'} eq 'ajax') {
print($query->header(-type => 'text/html',
diff --git a/tmpl/release_select.tt2 b/tmpl/release_select.tt2
index 9172e24..65a6425 100644
--- a/tmpl/release_select.tt2
+++ b/tmpl/release_select.tt2
@@ -1,7 +1,7 @@
<select name="v" id="v"
onchange="update_version(this, '[% context.base_url %]', '[% context.tree %]', '[% context.default_release %]', '[% context.path %]');">
[% FOREACH v = context.all_releases %]
- <option value="[% v | uri %]"
+ <option value="[% v | html %]"
[% IF v == context.release %]selected="selected"[% END %]>
[% v | html %]</option>
[% END %]
diff --git a/webroot/.static/js/lxrng-funcs.js b/webroot/.static/js/lxrng-funcs.js
index 24e956d..c735ed4 100644
--- a/webroot/.static/js/lxrng-funcs.js
+++ b/webroot/.static/js/lxrng-funcs.js
@@ -17,6 +17,14 @@
// The full GNU General Public License is included in this distribution
// in the file called COPYING.
+function encode_lxrng(str) {
+ return encodeURIComponent(str);
+}
+
+function decode_lxrng(str) {
+ return str;
+}
+
function popup_search(searchform) {
searchform = document.getElementById(searchform);
searchform.target = 'popup_' + window.name;