noalyss-commit
[Top][All Lists]
Advanced

[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, '');



reply via email to

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