Forum Replies Created
-
AuthorPosts
-
Toto98
ParticipantAh 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]Toto98
ParticipantAwesome ! Thanks 🙂
Toto98
ParticipantHi,
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
Toto98
ParticipantHi !
Ok awesome 🙂 have a nice day and thanks for your quick answer !!
Thomas
-
AuthorPosts