diff options
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++) |