From ba1d4aed3e9b081a55d306c96c134eee5117284b Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 5 Jul 2009 15:48:38 +0200 Subject: Added spoiler options for tag filters on VN search --- static/f/script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'static') 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() { -- cgit v1.2.3