noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 126/151: Correct js : this of the object is n


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 126/151: Correct js : this of the object is not callable from a nested function
Date: Sat, 4 Feb 2017 17:14:33 +0000 (UTC)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 53032b769879e7932ed1a4bca2de59582426e9a7
Author: Dany De Bontridder <address@hidden>
Date:   Sun Jan 15 11:49:25 2017 +0100

    Correct js : this of the object is not callable from a nested function
---
 html/js/managetable.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/html/js/managetable.js b/html/js/managetable.js
index dd73997..507d6d7 100644
--- a/html/js/managetable.js
+++ b/html/js/managetable.js
@@ -155,7 +155,7 @@ var ManageTable = function (p_table_name)
                 /// or add , the name of the row in the table has the
                 /// if p_ctl_row does not exist it means it is a new
                 /// row , otherwise an update
-                here.parseXML(req);
+                var answer=here.parseXML(req);
                 if (answer ['status'] == 'OK') {
                     if ($(answer['ctl'])) {
                         $(answer['ctl']).update(answer['html']);
@@ -163,7 +163,7 @@ var ManageTable = function (p_table_name)
                         var new_row = new Element("tr");
                         new_row.id = answer['ctl'];
                         new_row.innerHTML = answer['html'];
-                        $("tb" + this.control).appendChild(new_row);
+                        $("tb" + req.control).appendChild(new_row);
                     }
                 } else {
                     console.error("Error in save");
@@ -189,8 +189,8 @@ var ManageTable = function (p_table_name)
             method: "get",
             onSuccess: function (req) {
                 here.parseXML(req);
-                if (answer['status'] == 'OK') {
-                    $(answer['ctl']).hide();
+                if (here.answer['status'] == 'OK') {
+                    $(here.answer['ctl']).hide();
                 }
             }
 



reply via email to

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