sticky-list
sticky-list copied to clipboard
After Updating to 1.5.2 the following no longer works
List sort - when enabled in settings, clicking on the
What can I do to troubleshoot?
I've added this custom script to get the search working again
//searchbar in list results
jQuery(document).ready(function($) {
$(document).on( 'keyup', '.search', function() {
var input, filter, table, tr, td, i, a, txtValue;
input = $("#sticky-list-wrapper_1 .search").val();
filter = input.toUpperCase();
table = document.getElementById("sticky-list-wrapper_1");
tr = table.getElementsByTagName("tr");
// Loop through all table rows
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td");
if (td) {
for (a = 0; a < td.length; a++) { // Loop through all tds and hide if necessesary
txtValue = td[a].textContent || td[a].innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
break;
} else {
tr[i].style.display = "none";
}
}
}
}
});
});
Thank you for this report. I will investigate.
This is due to some files not being included in the version in the WordPress repo. Please use the Github version until thi is fixed.