Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update sorttable.js
  • Loading branch information
echohlne authored Oct 29, 2020
commit 49c7074e12a62568bd8f379d1019bcd56a24f19b
14 changes: 7 additions & 7 deletions core/src/main/resources/org/apache/spark/ui/static/sorttable.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ sorttable = {
'sorttable_sorted_reverse');
rowlists = this.parentNode.getElementsByTagName("span");
for (var j=0; j < rowlists.length; j++) {
if (rowlists[j].className.search(/\bsorttable_sortfwdind\b/)) {
if (rowlists[j].className.search(/\bsorttable_sortfwdind\b/) != -1) {
rowlists[j].parentNode.removeChild(rowlists[j]);
}
}
sortrevind = document.createElement('span');
sortrevind.class = "sorttable_sortrevind";
sortrevind.className = "sorttable_sortrevind";
sortrevind.innerHTML = stIsIE ? '&nbsp<font face="webdings">5</font>' : '&nbsp;&#x25BE;';
this.appendChild(sortrevind);
return;
Expand All @@ -117,12 +117,12 @@ sorttable = {
'sorttable_sorted');
rowlists = this.parentNode.getElementsByTagName("span");
for (var j=0; j < rowlists.length; j++) {
if (rowlists[j].className.search(/\sorttable_sortrevind\b/)) {
if (rowlists[j].className.search(/\bsorttable_sortrevind\b/) != -1) {
rowlists[j].parentNode.removeChild(rowlists[j]);
}
}
sortfwdind = document.createElement('span');
sortfwdind.class = "sorttable_sortfwdind";
sortfwdind.className = "sorttable_sortfwdind";
sortfwdind.innerHTML = stIsIE ? '&nbsp<font face="webdings">6</font>' : '&nbsp;&#x25B4;';
this.appendChild(sortfwdind);
return;
Expand All @@ -138,15 +138,15 @@ sorttable = {
});
rowlists = this.parentNode.getElementsByTagName("span");
for (var j=0; j < rowlists.length; j++) {
if (rowlists[j].className.search(/\bsorttable_sortfwdind\b/)
|| rowlists[j].className.search(/\sorttable_sortrevind\b/) ) {
if (rowlists[j].className.search(/\bsorttable_sortfwdind\b/) != -1
|| rowlists[j].className.search(/\bsorttable_sortrevind\b/) != -1) {
rowlists[j].parentNode.removeChild(rowlists[j]);
}
}

this.className += ' sorttable_sorted';
sortfwdind = document.createElement('span');
sortfwdind.class = "sorttable_sortfwdind";
sortfwdind.className = "sorttable_sortfwdind";
sortfwdind.innerHTML = stIsIE ? '&nbsp<font face="webdings">6</font>' : '&nbsp;&#x25B4;';
this.appendChild(sortfwdind);

Expand Down