diff options
author | Yorhel <git@yorhel.nl> | 2009-07-05 15:48:38 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-07-05 15:52:47 +0200 |
commit | ba1d4aed3e9b081a55d306c96c134eee5117284b (patch) | |
tree | ba33209f9e0762b3783e6e73e4750936c8ce1534 /static | |
parent | 58e7d6f87e7533e03606b06c1be80c59bcba92bc (diff) |
Added spoiler options for tag filters on VN search
Diffstat (limited to 'static')
-rw-r--r-- | static/f/script.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/static/f/script.js b/static/f/script.js index 23131749..34f654c0 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -476,6 +476,16 @@ DOMLoad(function() { ); } + // update spoiler cookie on VN search radio button + if(x('sp_0')) { + cl('sp_0', function(){setCookie('tagspoil',0)}); + cl('sp_1', function(){setCookie('tagspoil',1)}); + cl('sp_2', function(){setCookie('tagspoil',2)}); + if((i = readCookie('tagspoil')) == null) + i = 1; + x('sp_'+i).checked = true; + } + // show/hide NSFW VN image if(x('nsfw_show')) x('nsfw_show').getElementsByTagName('a')[0].onclick = function() { |