diff options
author | Yorhel <git@yorhel.nl> | 2009-09-10 16:49:21 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-09-10 16:49:21 +0200 |
commit | d4b446c70e78b78d7e0199bb5c535ec993adc05e (patch) | |
tree | 655315c6563471758f877b6c731d8d66befa3081 /static | |
parent | 8372721d028c10c9819bc3fdc53ea5dabbb862ab (diff) |
Handler::Releases: Ingore some fields when the patch status is set
Diffstat (limited to 'static')
-rw-r--r-- | static/f/script.js | 9 |
1 files changed, 9 insertions, 0 deletions
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<document.forms.length; i++) |