From 1d3b37db58c0dda3f677707b68241a58e9d60725 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 3 Sep 2024 12:47:57 +0200 Subject: [PATCH] =?UTF-8?q?C0MENU=20:=20bug=20javascript=20Uniquement=20no?= =?UTF-8?q?te=20de=20d=C3=A9bit=20ou=20cr=C3=A9dit=20ne=20fonctionne=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/js/noalyss_script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js index b803337a1..e4d4e7070 100644 --- a/html/js/noalyss_script.js +++ b/html/js/noalyss_script.js @@ -3879,7 +3879,8 @@ function toggle_checkbox_onoff(icon_domid, p_value_domid) { * @returns {undefined} */ function toggle_row_warning_enable(p_enable, p_row) { - if ($(p_enable).value == 1) { + var warning = document.getElementsByName('negative_amount')[0].value + if ( warning == 1) { $(p_row).show(); } else { $(p_row).hide();