Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter David Garcia

    (@sultanicq)

    Problem seems to be that the category-search tab doesn’t get the click event.

    By the moment I patched the system doing this:

    jQuery( document ).ready(function($) {
    
        // categories
        $('.categorydiv').each( function(){
            var this_id = $(this).attr('id'), catAddBefore, catAddAfter, taxonomyParts, taxonomy, settingName;
    
            taxonomyParts = this_id.split('-');
            taxonomyParts.shift();
            taxonomy = taxonomyParts.join('-');
            settingName = taxonomy + '_tab';
            if ( taxonomy == 'category' )
                settingName = 'cats';
    
            $('#' + taxonomy + '-search-tab').click( function(){
                var t = $(this).attr('href');
                $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
                $('#' + taxonomy + '-tabs').siblings('.tabs-panel').hide();
                $(t).show();
                if ( '#' + taxonomy + '-all' == t )
                    deleteUserSetting( settingName );
                else
                    setUserSetting( settingName, 'pop' );
                return false;
            });
        });
    
    })

    Plugin Author atillaordog

    (@atillaordog)

    I made a fix, made it compatible with 4.2.2 ??

    Check it out. Also changed deprecated .live() to .on().

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search link does nothing’ is closed to new replies.