From 8b03a41c998c6c1f29b195e6949ba5afcd51887d Mon Sep 17 00:00:00 2001 From: "David R Newman (EPrints 3.4 development)" Date: Fri, 24 Jan 2025 18:27:46 +0000 Subject: [PATCH] Fixes #12 --- lib/static/javascript/auto/reports.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/static/javascript/auto/reports.js b/lib/static/javascript/auto/reports.js index 23293ac..e2a1ce9 100644 --- a/lib/static/javascript/auto/reports.js +++ b/lib/static/javascript/auto/reports.js @@ -40,6 +40,10 @@ var onFormSelect = function(){ { $(input).setAttribute("disabled", "disabled"); }); + $(elem).select('select').each(function (select) + { + $(select).setAttribute("disabled", "disabled"); + }); }); //show the form we want @@ -51,6 +55,11 @@ var onFormSelect = function(){ { $(input).removeAttribute("disabled"); }); + //enable this form's select elements + $(formid).select('select').each(function (select) + { + $(select).removeAttribute("disabled"); + }); };