summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-27 15:06:22 +0100
committerYorhel <git@yorhel.nl>2010-11-27 15:06:22 +0100
commit77b455c15b7155312cb3aaa344039c4536f992e0 (patch)
tree94dd18aac398c1cde26e8ab0f6642af889d6d23d
parent1f2b55b81523bdd806c8a75035f597478ede6776 (diff)
VN Filter Selector: Fixed tiny bug with selecting spoiler level
Another one of those '' == 0 JS logic errors. Gotta be careful with that.
-rw-r--r--data/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/script.js b/data/script.js
index 9f96bc6f..2b7846d8 100644
--- a/data/script.js
+++ b/data/script.js
@@ -2060,7 +2060,7 @@ function filVN() {
[ 'taginc', mt('_vnbrowse_taginc'), taginc, readfunc, writefunc ],
[ 'tagexc', mt('_vnbrowse_tagexc'), tagexc, readfunc, writefunc ],
filFOptions('tagspoil', ' ', [[0, mt('_vnbrowse_spoil0')],[1, mt('_vnbrowse_spoil1')],[2, mt('_vnbrowse_spoil2')]],
- function (o) { var s = getCookie('tagspoil'); if(o == '') return s == null ? 0 : s; setCookie('tagspoil', o); return o})
+ function (o) { var s = getCookie('tagspoil'); if(o+'' == '') return s == null ? 0 : s; setCookie('tagspoil', o); return o})
],
[ mt('_vnbrowse_language'), filFSelect('lang', mt('_vnbrowse_language'), 20, lang) ],
[ mt('_vnbrowse_platform'), filFSelect('plat', mt('_vnbrowse_platform'), 20, plat) ]