summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-05-17 15:41:41 +0200
committerYorhel <git@yorhel.nl>2011-05-17 15:41:41 +0200
commit9f09d79f95e565c080dcd4c0feaebaf0bfc93cb6 (patch)
tree2e5e3e20ee66ccd850f1aba3c612dfcfbb57e6ed
parentfdb4a5ca6f1234065e53638a3497d783983acef9 (diff)
Bugfix: Make sure the user dropdown boxes work on /v+/chars
-rw-r--r--ChangeLog1
-rw-r--r--data/script.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5eba14ca..cad369c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
- Added secondary ordering on title on releases listing on VN page
- Added i+/c+ ID recognition to VN search
- Bugfix: Properly make i+ IDs linkable in bb2html()
+ - Bugfix: Make sure the user dropdown boxes work on /v+/chars
2.20 - 2011-05-01
- Added support for sponsored links on VN pages
diff --git a/data/script.js b/data/script.js
index 4bfb5c05..96023b1c 100644
--- a/data/script.js
+++ b/data/script.js
@@ -2586,7 +2586,7 @@ if(byId('votesel')) {
if(s == 10 && !confirm(mt('_vnpage_uopt_10vote')))
return;
if(s)
- location.href = location.href.replace(/\.[0-9]+/, '')+'/vote?formcode='+this.name+';v='+s;
+ location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/\.[0-9]+/, '')+'/vote?formcode='+this.name+';v='+s;
};
}
@@ -2639,7 +2639,7 @@ if(byId('nsfwhide')) {
if(byId('wishsel')) {
byId('wishsel').onchange = function() {
if(this.selectedIndex != 0)
- location.href = location.href.replace(/\.[0-9]+/, '')
+ location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/\.[0-9]+/, '')
+'/wish?formcode='+this.name+';s='+this.options[this.selectedIndex].value;
};
}
@@ -2648,7 +2648,7 @@ if(byId('wishsel')) {
if(byId('listsel')) {
byId('listsel').onchange = function() {
if(this.selectedIndex != 0)
- location.href = location.href.replace(/\.[0-9]+/, '')
+ location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/\.[0-9]+/, '')
+'/list?formcode='+this.name+';e='+this.options[this.selectedIndex].value;
};
}