diff options
Diffstat (limited to 'static/f/script.js')
-rw-r--r-- | static/f/script.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/static/f/script.js b/static/f/script.js index c94d781a..987963dc 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -607,17 +607,26 @@ DOMLoad(function() { // forms.js if(x('relations')) relLoad(); - if(x('jt_box_screenshots')) + if(x('jt_box_vn_scr')) scrLoad(); if(x('media')) medLoad(); - if(x('jt_box_visual_novels')) + if(x('jt_box_rel_vn')) vnpLoad('vn'); - if(x('jt_box_producers')) + if(x('jt_box_rel_prod')) vnpLoad('producers'); 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++) |