[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();
}
}
- [Noalyss-commit] [noalyss] 73/151: Export en PDF d'operation, (continued)
- [Noalyss-commit] [noalyss] 73/151: Export en PDF d'operation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 143/151: Fix : when exporting files for creating a PDF in ANC , the filename can be a problem if he contains some char., Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 116/151: Manage_Table , the js and php code are been splitted in 2 files , the ajax calls are nearly done , doxygen for these files is correct, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 101/151: Deprecated HtmlInput::make_object must be replace by json_encode, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 99/151: Improve Sorttable, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 110/151: Add property in Manage_Table VISIBLE UPDATABLE, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 125/151: Test ManageTable ; fix parseXML function, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 144/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 09/151: Experiment less, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 123/151: Test ManageTable ; fix parseXML function, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 126/151: Correct js : this of the object is not callable from a nested function,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 135/151: Fix bug : duplicate doesn't take in account the TVA_ID, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 148/151: Missing col in ANC_TABLE, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 111/151: Improve Manage_Table_SQL : add functions for javascript , update or visible flag ..., Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 147/151: Return must be after throw, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 141/151: ManageTable colorize the row in alternate, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 150/151: Improve Doxygen setting, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 133/151: Correct Manage Table , finish implementing, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 03/151: CSS : Update style mobile, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 57/151: CSS : Update style mobile, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 117/151: Indent properly, Dany De Bontridder, 2017/02/04