This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Label checkboxes clicable #13274
    Toto98Toto98
    Participant

    Ah ok ! Thanks,

    I so much changed your plugin that I’m afraid to need to update the code again 🙁 So I just wrote this little code, maybe that can help someone else 🙂

    1°) jQuery

    [code]$(‘.ajaxsearchpro form .asp_custom_f .asp_option’).each(function(){
    var cbContainer = $(this);
    $(this).find(‘.label’).click(function(){
    var cbElement = $(cbContainer).find(‘input[type=checkbox]’);
    var cbState = $(cbElement).prop(‘checked’);
    if(cbState == true){
    $(cbElement).prop(‘checked’, false).change();
    }else{
    $(cbElement).prop(‘checked’, true).change();
    }
    });
    });[/code]

    2°) CSS

    [code].label
    {
    cursor: pointer;
    }[/code]

    in reply to: Results Variable #13122
    Toto98Toto98
    Participant

    Awesome ! Thanks 🙂

    in reply to: Results Variable #13033
    Toto98Toto98
    Participant

    Hi,

    Thanks for your answer. the thing is that the auto populate works but it’s limited to 10. If I change to 20 it doesn’t work, I still have 10 🙁 You can try on my account I gave you access.

    So that’s why I was wondering if I can get the global object easily. I don’t want to change your scripts. I just want to read in console the global object and use it to make the display of all markers that matched the search on the map 🙂 I don’t really need to populate with all results. The more important is for me to ensure that everything appear on the map.

    I know the map has nothing to see with you. But I’m just asking for the global object that contains the list of result. The one where the results are stored.

    Thanks in advance

    Thomas

    in reply to: Can't add ACF anymore #12838
    Toto98Toto98
    Participant

    Hi !

    Ok awesome 🙂 have a nice day and thanks for your quick answer !!

    Thomas

Viewing 4 posts - 1 through 4 (of 4 total)