projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8712062
)
Fix sorting of tables with other stuff inside the td
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 20 Mar 2009 17:23:37 +0000
(17:23 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 20 Mar 2009 17:23:37 +0000
(17:23 +0000)
blue-theme/unauthenticated/sorttable.js
patch
|
blob
|
history
diff --git
a/blue-theme/unauthenticated/sorttable.js
b/blue-theme/unauthenticated/sorttable.js
index
78eeb06
..
8794c49
100644
(file)
--- a/
blue-theme/unauthenticated/sorttable.js
+++ b/
blue-theme/unauthenticated/sorttable.js
@@
-64,6
+64,8
@@
function ts_resortTable(lnk,clid) {
}
var spantext = ts_getInnerText(span);
var td = lnk.parentNode;
+ while(td.nodeName.toLowerCase() != 'td')
+ td = td.parentNode;
var column = clid || td.cellIndex;
var table = getParent(td,'TABLE');