[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();
}
}
- [Noalyss-commit] [noalyss] branch unstable updated (a21554139 -> 34489f687), dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 03/16: Cosmetic width menu, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 10/16: Data_SQL and Table_Data_SQL add virtual column, to allow transformation of columns in SQL, faster than transforming in PHP afterward, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 04/16: FIX bug due changes Data_SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 02/16: FONT MONSERRAT ROBOTO Title and menu, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 05/16: FREC : checkbox, checked by range, hidden elements must not be checked,
dwm <=
- [Noalyss-commit] [noalyss] 08/16: Improve Code: Database : add __toString, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 14/16: Add column timestamp for table TOOL_UOS, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 01/16: Code Improve : Data_SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 06/16: FIX bug due changes Data_SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 07/16: Detail Operation for small screen, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 09/16: Code Improve : Single_Record, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 12/16: Data_SQL if we use $this->sql , then must be set SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 13/16: Data_SQL if column doesn't exist, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 15/16: Fix bug : wrong function name, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 11/16: CSS : cosmetic : font in a variable + outline input text in orange, dwm, 2025/05/27