diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | data/script.js | 9 |
2 files changed, 8 insertions, 2 deletions
@@ -13,6 +13,7 @@ - Added notes field to the user VN list - Added vnlists.status filter to /u+/list - Pass VN tag filters by ID rather than name + - Don't send 'tagspoil' filter when 'tag_inc' isn't active 2.15 - 2010-12-15 - Removed expand/collapse from history browser and /u+/posts and switched to diff --git a/data/script.js b/data/script.js index b208af56..998c24d9 100644 --- a/data/script.js +++ b/data/script.js @@ -1840,8 +1840,8 @@ function filSelectField(obj) { } function filSerialize() { - var l = []; var num = 0; + var values = {}; for(var f in fil_cats[0]) { if(!byId('fil_check_'+f).checked) continue; @@ -1861,8 +1861,13 @@ function filSerialize() { } } if(r.length > 0 && r[0] != '') - l.push(fil_cats[0][f].fil_code+'-'+r.join('~')); + values[fil_cats[0][f].fil_code] = r.join('~'); } + if(!values['tag_inc']) + delete values['tagspoil']; + var l = []; + for(var f in values) + l.push(f+'-'+values[f]); byId('fil').value = l.join('.'); setText(byName(byId('filselect'), 'i')[1], num > 0 ? ' ('+num+')' : ''); } |