From cff81159b6de8d059d6b36a6608e62596649092c Mon Sep 17 00:00:00 2001 From: Mic Date: Wed, 16 Apr 2025 00:06:00 +0200 Subject: [PATCH] Set 'checked_val' attribute for disabled checkbox in toggleDiffviewer function. see #347 --- pages/customprompts/mzta-custom-prompts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/customprompts/mzta-custom-prompts.js b/pages/customprompts/mzta-custom-prompts.js index 49dc6376..e61d392c 100644 --- a/pages/customprompts/mzta-custom-prompts.js +++ b/pages/customprompts/mzta-custom-prompts.js @@ -333,6 +333,7 @@ function toggleDiffviewer(e) { checkbox.disabled = false; } else { checkbox.checked = false; + checkbox.setAttribute('checked_val', '0'); checkbox.disabled = true; } //console.log('>>>>>>>> tr: ' + tr.getAttribute('data-idnum'));