Fixed : error when column contains only a input element (checkbox)
This commit is contained in:
parent
d0a55c9fe0
commit
032bd0f338
1 changed files with 2 additions and 2 deletions
|
|
@ -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, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue