From d4b446c70e78b78d7e0199bb5c535ec993adc05e Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 10 Sep 2009 16:49:21 +0200 Subject: Handler::Releases: Ingore some fields when the patch status is set --- static/f/script.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'static') diff --git a/static/f/script.js b/static/f/script.js index 41a823b5..987963dc 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -618,6 +618,15 @@ DOMLoad(function() { if(x('taglinks')) tglLoad(); + // make some fields readonly when patch flag is set + if(x('jt_box_rel_geninfo')) { + var func = function() { + x('doujin').disabled = x('resolution').disabled = x('voiced').disabled = x('ani_story').disabled = x('ani_ero').disabled = x('patch').checked; + }; + func(); + x('patch').onclick = func; + } + // spam protection on all forms if(document.forms.length >= 1) for(i=0; i