test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • diofou Friend
    #193450

    Hello,

    I’m having some issues with the auto filtering option, i have to scroll down to the bottom of the module and click on the search button which is very inconvenient, i serpent some time looking for similar problem on the forum but none of the proposed solutions seem to work for me. Can you please help me with this. the module’s on this page and is name (Filtre – Trouvez vos films)

    Best regards.

    Luna Garden Moderator
    #517429

    Hi diofou,

    In order to enable auto filtering, please go to backend >> Module JA K2 Filter >> Set Auto Filter is Yes.
    I have checked JA K2 filter on your site, this option is not enabled yet.

    diofou Friend
    #517582

    Hello,

    Of course it was disabled, the search button disappears when it’s enabled and since it’s not working i had to disable it, i taught this kind of situations is why you ask for login credentials? did you check? it’s still not working.

    Luna Garden Moderator
    #517641

    Yeah, I see it now.

    To fix this issue, open the file
    components/com_jak2filter/controllers/cron.php

    and searching for the following code snippet:

    $label = trim($label);

    if(in_array($label, $aListLabels)) continue;

    $aListLabels[] = $label;

    and replacing it with:

    $label = trim($label);

    if(empty($label)) continue;

    if(in_array(strtolower($label), $aListLabels)) continue;

    $aListLabels[] = strtolower($label);

    Remember to backup your file before modification.

    diofou Friend
    #517726

    Hello,

    Thanks for your reply, unfortunately it didn’t work, i’ve made the change you can check.

    Regards.

    Thanh Nguyen Viet Friend
    #517888

    @ diofou,

    To resolve this issue, please open the file:
    modules/mod_jak2filter/tmpl/default.php

    Replace following code:
    [PHP] f.getElements(‘input, select, textarea’).each(function(el) {
    el.addEvent(‘change’, function(){
    $(‘<?php echo $formid; ?>’).fireEvent(‘submit’);
    });
    });[/PHP]

    With:

    [PHP] f.getElements(‘input’).each(function(el) {
    el.addEvent(‘change’, function(){
    $(‘<?php echo $formid; ?>’).fireEvent(‘submit’);
    });
    });

    f.getElements(‘select’).each(function(el) {
    el.addEvent(‘change’, function(){
    $(‘<?php echo $formid; ?>’).fireEvent(‘submit’);
    });
    });

    f.getElements(‘textarea’).each(function(el) {
    el.addEvent(‘change’, function(){
    $(‘<?php echo $formid; ?>’).fireEvent(‘submit’);
    });
    });[/PHP]

    I have tested this tweak at my end, the auto filter feature worked fine. Let me know how it goes from your side.

    diofou Friend
    #517960

    Hello,

    YES, it is working perfectly now, thank you both very much.

    Regards.

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

This topic contains 7 replies, has 3 voices, and was last updated by  diofou 10 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum