noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 10/44: javascript : small bug in alert_box ,


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/44: javascript : small bug in alert_box , callback function is not defined
Date: Wed, 26 Dec 2018 04:29:51 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 013727b842126cd29c84a33016ec1955b8b38f6a
Author: Dany De Bontridder <address@hidden>
Date:   Tue Nov 20 12:52:08 2018 +0100

    javascript : small bug in alert_box , callback function is not defined
---
 html/js/scripts.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index 05f0bdf..98964f9 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -705,6 +705,7 @@ function add_div(obj)
         /* elt.setStyle({visibility:'visible'}); */
         elt.style.visibility = 'visible';
         elt.show();
+        return elt;
     }
     catch (e)
     {
@@ -2974,7 +2975,7 @@ function confirm_box(p_obj, p_message,p_callback_true)
  */
 function alert_box(p_message)
 {
-    smoke.alert(p_message,false , {ok:'ok',classname:"inner_box"});
+    smoke.alert(p_message, undefined,{ok:'ok',classname:"inner_box"});
 }
 
 



reply via email to

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