sticky-list icon indicating copy to clipboard operation
sticky-list copied to clipboard

After Updating to 1.5.2 the following no longer works

Open LyleBennett opened this issue 6 years ago • 2 comments

List sort - when enabled in settings, clicking on the

header doesn't change the sorting of the results. List search - Same thing, enabled but does nothing.

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";
	      }
	}
    }
  }
});

});

LyleBennett avatar Feb 14 '19 07:02 LyleBennett

Thank you for this report. I will investigate.

13pixlar avatar Feb 14 '19 10:02 13pixlar

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.

13pixlar avatar Dec 04 '20 12:12 13pixlar