[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains onl
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains only a input element (checkbox) |
Date: |
Tue, 8 Mar 2022 17:08:56 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 032bd0f338fbc37cff5072972ef71bb123e9f466
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Mar 8 09:21:09 2022 +0100
Fixed : error when column contains only a input element (checkbox)
---
html/js/sorttable.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/html/js/sorttable.js b/html/js/sorttable.js
index e90e6cf0..a15b1ad3 100644
--- a/html/js/sorttable.js
+++ b/html/js/sorttable.js
@@ -277,8 +277,8 @@ var sorttable = {
hasInputs = (typeof node.getElementsByTagName == 'function') &&
node.getElementsByTagName('input').length;
-
- if (node.getAttribute("sorttable_customkey") != null) {
+
+ if (node.getAttribute && node.getAttribute("sorttable_customkey") !=
null) {
return node.getAttribute("sorttable_customkey");
} else if (typeof node.textContent != 'undefined' && !hasInputs) {
return node.textContent.replace(/^\s+|\s+$/g, '');
- [Noalyss-commit] [noalyss] branch devel updated (eba72b4c -> d0eb957a), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 07/07: Improve : card attribute option is a textarea, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 04/07: Documentation, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains only a input element (checkbox),
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/07: Documentation, Dany De Bontridder, 2022/03/08