diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | data/script.js | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -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; }; } |