Remove jQuery filter to improve page load time

Not building a (long!) list and filtering it then gives a nice
performance improvement.

Change-Id: Ia9f047e8c1ecf8a5df3d6a416848ccb2de18f58d
This commit is contained in:
Philipp Marek 2015-12-22 19:28:32 +01:00
parent 6997457f08
commit 4f7fda440b
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ var toggle_verified_minus = function () {
$(document).ready(function () {
$("colgroup").each(function (i, elem) {
if ($(elem).hasClass("verified-1")) {
$("#results").find("td").filter(":nth-child(" + (i + 1) + ")").addClass("verified-1");
$("#results").find("td:nth-child(" + (i + 1) + ")").addClass("verified-1");
} else if ($(elem).hasClass("verified1")) {
$("#results").find("td").filter(":nth-child(" + (i + 1) + ")").addClass("verified1");
$("#results").find("td:nth-child(" + (i + 1) + ")").addClass("verified1");
}
});
$("#verified1-button").on("click", toggle_verified_plus);