summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-11 13:55:00 +0100
committerYorhel <git@yorhel.nl>2008-12-11 13:55:00 +0100
commit0514545451f9955cbdcdfed3137ac7e7888d6269 (patch)
treee06739807a82801267d4b3d5740a52f38d80e2fe /static
parent5664f12a23fb5cbd531114ec5f6e79c8fba8274a (diff)
Made wishlist/vote/vnlist dropdowns work on r+.+ and v+.+ pages
Diffstat (limited to 'static')
-rw-r--r--static/f/script.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/f/script.js b/static/f/script.js
index 918e4bc8..739b52d0 100644
--- a/static/f/script.js
+++ b/static/f/script.js
@@ -268,7 +268,7 @@ DOMLoad(function() {
+"It is generally a bad idea to have more than three games in your vote list with this rating, choose carefully!"))
return;
if(s)
- location.href = location.href+'/vote?v='+s;
+ location.href = location.href.replace(/\.[0-9]+/, '')+'/vote?v='+s;
};
// VN Wishlist editing
@@ -276,7 +276,7 @@ DOMLoad(function() {
if(i)
i.onchange = function() {
if(this.selectedIndex != 0)
- location.href = location.href+'/wish?s='+this.options[this.selectedIndex].value;
+ location.href = location.href.replace(/\.[0-9]+/, '')+'/wish?s='+this.options[this.selectedIndex].value;
};
// Batch Wishlist editing
i = x('batchedit');
@@ -295,7 +295,7 @@ DOMLoad(function() {
if(i)
i.onchange = function() {
if(this.selectedIndex != 0)
- location.href = location.href+'/list?e='+this.options[this.selectedIndex].value;
+ location.href = location.href.replace(/\.[0-9]+/, '')+'/list?e='+this.options[this.selectedIndex].value;
};
// User VN list
i = x('relhidall');