noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 05/16: FREC : checkbox, checked by range, hid


From: dwm
Subject: [Noalyss-commit] [noalyss] 05/16: FREC : checkbox, checked by range, hidden elements must not be checked
Date: Tue, 27 May 2025 09:26:08 -0400 (EDT)

sparkyx pushed a commit to branch unstable
in repository noalyss.

commit 8befe045349ae2ba4d0ff0de26d4f8a5e15a5f0a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun May 18 16:00:16 2025 +0200

    FREC : checkbox, checked by range, hidden elements must not be checked
---
 include/compta_fin_rec.inc.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/compta_fin_rec.inc.php b/include/compta_fin_rec.inc.php
index 7d45cd9a1..fbc1c09d3 100644
--- a/include/compta_fin_rec.inc.php
+++ b/include/compta_fin_rec.inc.php
@@ -74,8 +74,9 @@ bcscale(2);
         }
         var check = (aName[from].checked) ? true : false;
         for (x = from; x <= end; x++) {
+            if ( 
window.getComputedStyle(aName[x].parentNode.parentNode).display == "none" ) { 
continue; }
             aName[x].checked = check;
-            if( x < end && x > from ) {
+            if( x < end && x > from   ) {
                 
Bank_Reconciliation.update_selected(aName[x],aName[x].getAttribute('amount_operation'));
                 
Bank_Reconciliation.update_remain(aName[x],aName[x].getAttribute('amount_operation'));
             }
@@ -135,7 +136,8 @@ bcscale(2);
             var i=0;
             for (i=0;i<form.length;i++) {
                 var e=form.elements[i];
-                if (e.type=='checkbox') {
+                if (e.type=='checkbox' &&  
window.getComputedStyle(e.parentNode.parentNode).display != "none" ) 
+                {
                         e.click();
                 }
             }



reply via email to

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