• Resolved trilalex

    (@trilalex)


    Hello,

    I am having an issue with the JS Live Search. For some reason, when I try to search for specific things in the list, the first few results I get are of zero relevance.

    From my testing, I found that the issue is coming from the directory-script.js (line ~854). The fadeOut command is causing the old results to remain on the list view.

    // If the list item does not contain the text phrase fade it out
    if ($(this).text().search(new RegExp(filter, "i")) < 0 && dataurl.search(new RegExp(filter, "i")) < 0 && dataTitleTxt.search(new RegExp(filter, "i")) < 0 && parentH3.search(new RegExp(filter, "i")) < 0 && dataSubtitle.search(new RegExp(filter, "i")) < 0 && datatag.search(new RegExp(filter, "i")) < 0 ) {
    	$(this).fadeOut();
    	$(this).removeClass("showMe");		
     
    // Show the list item if the phrase matches and increase the count by 1
    }
    else {
    	$(this).show();
    	$(this).addClass("showMe");
    	count++;
    }

    If I replaced fadeOut() with hide(), then it works better.

    Can you please fix this issue?

    Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Bug] Live Search not returning relevant results’ is closed to new replies.