Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Updating to 1.5.2 the following no longer works #28

Open
LyleBennett opened this issue Feb 14, 2019 · 2 comments
Open

After Updating to 1.5.2 the following no longer works #28

LyleBennett opened this issue Feb 14, 2019 · 2 comments
Assignees

Comments

@LyleBennett
Copy link

LyleBennett commented Feb 14, 2019

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

});
@13pixlar
Copy link
Owner

Thank you for this report. I will investigate.

@13pixlar
Copy link
Owner

13pixlar commented Dec 4, 2020

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 13pixlar self-assigned this Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants