noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 25/107: correct js for error


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 25/107: correct js for error
Date: Mon, 26 Aug 2019 10:31:49 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 1de50cb5e501e2307cfeab7cb8364a6940c58671
Author: Dany De Bontridder <address@hidden>
Date:   Sun Apr 14 18:23:46 2019 +0200

    correct js for error
---
 html/js/scripts.js | 4 ++--
 html/js/smoke.js   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index 37b4e95..ec64b84 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -1204,7 +1204,7 @@ function fill_box(req)
         alert_box(e.message);
          if (console) {
             console.error(e);
-            console.error("log answer = "+e.responseText);
+            console.error("log answer = "+req.responseText);
         }
     }
     try {
@@ -1213,7 +1213,7 @@ function fill_box(req)
     catch (e) {
         if (console) {
             console.error(e);
-            console.error("log answer = "+e.responseText);
+            console.error("log answer = "+req.responseText);
         }
         alert_box("Impossible executer script de la reponse\n" + e.message);
     }
diff --git a/html/js/smoke.js b/html/js/smoke.js
index bfde050..b9a05a8 100644
--- a/html/js/smoke.js
+++ b/html/js/smoke.js
@@ -192,7 +192,7 @@
                     "click",
                     function () {
                         smoke.destroy(f.type, f.newid);
-                        if (typeof f.callback !== 'undefined') {
+                        if (typeof f.callback !== 'undefined' && f.callback) {
                             f.callback();
                         }
                     }



reply via email to

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