noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 15/34: Fix : the select range select also the


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 15/34: Fix : the select range select also the hidden element
Date: Sun, 5 Feb 2023 04:41:40 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 1468f26239df074c14e4e75bffc24fdecdb8dfb1
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Jan 15 17:00:51 2023 +0100

    Fix : the select range select also the hidden element
---
 html/js/noalyss_checkbox.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/html/js/noalyss_checkbox.js b/html/js/noalyss_checkbox.js
index 04c44b26e..61272c176 100644
--- a/html/js/noalyss_checkbox.js
+++ b/html/js/noalyss_checkbox.js
@@ -58,7 +58,15 @@ function checkbox_set_range(evt, elt, p_name) {
     }
     var check = (aName[from].checked) ? true : false;
     for (x = from; x <= end; x++) {
-        aName[x].checked = check;
+        if (aName[x].parentNode.parentNode )
+        {
+            if ( 
window.getComputedStyle(aName[x].parentNode.parentNode).display != "none" ) {
+                /* 
console.debug(window.getComputedStyle(aName[x].parentNode.parentNode).display);*/
+                aName[x].checked = check;
+            }
+        } else  {
+            aName[x].checked = check;
+        }
     }
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]