summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authormorkt <>2015-02-04 12:42:06 +0100
committerYorhel <git@yorhel.nl>2015-02-04 12:42:06 +0100
commita4873984865b95143a5b3c08d7ebc4b033a1787e (patch)
tree4bdbf57a2b433ca22c5d1a99df0084748a16e315 /data
parentc0f9cafbe7f7b5d9b2f2a6458c6ef0986de3d2c8 (diff)
Fix JS vote/wishlist/vnlist selection changing stuff on /v+/staff
Diffstat (limited to 'data')
-rw-r--r--data/script.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/script.js b/data/script.js
index da4869eb..937f0007 100644
--- a/data/script.js
+++ b/data/script.js
@@ -3036,7 +3036,7 @@ if(byId('votesel')) {
if(s == 10 && !confirm(mt('_vnpage_uopt_10vote')))
return;
if(s > 0 || s == -1)
- location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/(v\d+)\.\d+/, '$1')+'/vote?formcode='+this.name+';v='+s;
+ location.href = location.href.replace(/#.*/, '').replace(/\/(chars|staff)/, '').replace(/(v\d+)\.\d+/, '$1')+'/vote?formcode='+this.name+';v='+s;
};
}
@@ -3094,7 +3094,7 @@ if(byId('nsfwhide')) {
if(byId('wishsel')) {
byId('wishsel').onchange = function() {
if(this.selectedIndex != 0)
- location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/\.[0-9]+/, '')
+ location.href = location.href.replace(/#.*/, '').replace(/\/(chars|staff)/, '').replace(/\.[0-9]+/, '')
+'/wish?formcode='+this.name+';s='+this.options[this.selectedIndex].value;
};
}
@@ -3103,7 +3103,7 @@ if(byId('wishsel')) {
if(byId('listsel')) {
byId('listsel').onchange = function() {
if(this.selectedIndex != 0)
- location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/\.[0-9]+/, '')
+ location.href = location.href.replace(/#.*/, '').replace(/\/(chars|staff)/, '').replace(/\.[0-9]+/, '')
+'/list?formcode='+this.name+';e='+this.options[this.selectedIndex].value;
};
}