Forums Forums Search & Filter Pro Chosen script strings translation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #21347

    Well I fixed this problem by adding this code to my template JS file:

    
        // Pass language variable to chosen script
        var $chosen = $('form.searchandfilter').find("select[data-combobox=1]");
    
        if($chosen.length>0) {
            if (typeof $chosen.chosen != "undefined") {
                $chosen.chosen('destroy').chosen({
                    no_results_text: LG_no_results
                });
            }
        }
    

    I’m destroying chosen instance from Search & Filter plugin and initializing it again with my custom string.

    Probably it’s not the best solution, but it’s working.

    If you know better method to handle it, please advice.

    Regards

    Ross Moderator
    #21404

    Hi there

    Its strange, no one has mentioned this until now – thanks for the update and info, I take a look further into this and see if its something I can add in to the plugin 🙂

    Thanks!

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