Plugin Directory

Changeset 1846665


Ignore:
Timestamp:
03/26/2018 01:06:54 AM (8 years ago)
Author:
csixty4
Message:

Fix the fix for non-title clicks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • daves-wordpress-live-search/trunk/js/daves-wordpress-live-search.js

    r1846664 r1846665  
    173173                // so I'm using this click handler to make clicking the result li act the
    174174                // same as clicking the title link
    175                 jQuery('#dwls_search_results').bind('click.dwls', function(e) {
    176                    window.location.href = jQuery(e.target).find('a.daves-wordpress-live-search_title').attr('href');
    177                 });
     175                jQuery('#dwls_search_results li').bind('click.dwls', function(e) {
     176                    window.location.href = jQuery(this).find('a.daves-wordpress-live-search_title').attr('href');
     177                });
    178178
    179179                LiveSearch.invokeCallbacks('AfterDisplayResults');
Note: See TracChangeset for help on using the changeset viewer.