Fix responsive league table behavior

This commit is contained in:
Brian Miyaji
2014-03-22 13:57:53 +11:00
parent e0b3571c68
commit 1b6d483b96
3 changed files with 3 additions and 2 deletions

View File

@@ -105,6 +105,7 @@
}
.sp-responsive-table .data-number,
.sp-responsive-table .data-name,
.sp-responsive-table .data-rank,
.sp-responsive-.sp-pinned-table td {
display: none;
}

View File

@@ -80,7 +80,7 @@ function viewport() {
original.wrap("<div class='sp-responsive-table-wrapper' />");
var copy = original.clone();
copy.find("td:not(.data-number):not(.data-name), th:not(.data-number):not(.data-name)").css("display", "none");
copy.find("td:not(.data-number):not(.data-name):not(.data-rank), th:not(.data-number):not(.data-name):not(.data-rank)").css("display", "none");
copy.removeClass("sp-responsive-table");
original.closest(".sp-responsive-table-wrapper").append(copy);