[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/12: TVA javascript : add callback function
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/12: TVA javascript : add callback function |
Date: |
Wed, 16 Nov 2022 14:39:13 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 634b3937a7e33a44d7327f0d415b6ce25dcd4855
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Nov 6 12:57:12 2022 +0100
TVA javascript : add callback function
---
html/js/noalyss_script.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js
index f97652838..08f2ee20e 100644
--- a/html/js/noalyss_script.js
+++ b/html/js/noalyss_script.js
@@ -585,8 +585,9 @@ function cat_doc_change(p_dt_id, p_dossier)
/**
* display the popup with vat and explanation
*@param obj with 4 attributes gdossier, ctl,popup
+ *@param p_function_callback callback function to be called after,
*/
-function popup_select_tva(obj)
+function popup_select_tva(obj,p_function_callback)
{
try
{
@@ -633,6 +634,9 @@ function popup_select_tva(obj)
add_div(popup);
$('lk_tva_select_table').focus();
sorttable.makeSortable($('tva_select_table'));
+ if ( p_function_callback) {
+ p_function_callback.call(null);
+ }
} catch (e)
{
alert_box("success_popup_select_tva " + e.message);
@@ -3820,10 +3824,7 @@ function toggle_onoff(icon_domid, p_value_domid)
*/
function toggle_checkbox_onoff(icon_domid, p_value_domid)
{
- console.log("toggle_checkbox_onoff");
- console.log("icon_domid"+icon_domid);
- console.log("p_value_domid"+p_value_domid);
-
+
if ($(p_value_domid).value == 0) {
$(p_value_domid).value = 1;
$(icon_domid).innerHTML = '';
- [Noalyss-commit] [noalyss] branch master updated (7749f97eb -> 1a1bcd567), Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 02/12: code cleaning : rename search_poste to search_accounting, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 03/12: TVA javascript : add callback function,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 08/12: Set current user in PostGresql session (config) so it can be directly used directly by triggers and pgplsql to track user's changes, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 09/12: Fix typo due to code cleaning, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 06/12: Add function __toString, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 04/12: INUM , IText and ITVAPopup add the attribute (for javascript), Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 01/12: WYSIWYG Editor integration and improve of waiting_box, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 05/12: set require to falser and add function __toString, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 10/12: useless file, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 11/12: Clean code : dead code, improve debug, comments, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 12/12: Save the current user in a PostgreSQL session variable noalyss.user_login, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 07/12: Tag : add color when selected, Dany De Bontridder, 2022/11/16