1. Hugh (cheesegrits) here. Thank you for all the good wishes. My back surgery was a success, post-op recovery is going well, and I'm getting stronger and feeling better every day. I hope to be getting back in the saddle and working support again over the next few days.
  2. IMPORTANT NOTE - we have made some changes in our github branch naming. The 'master' branch no longer exists, and is now called 'joomla25' (which is Fabrik 3.0). The 'joomla3' branch (which is Fabrik 3.2) remains unchanged. We have also removed all the other testing branches which had accuulated over the last few years. I have posted a thread in the Community forum for 3.0 with some more information, feel free to as questions there.

Small JS (syntax ?) problem

Discussion in 'Standard Support' started by jfquestiaux, Sep 3, 2010.

Thread Status:
Not open for further replies.
  1. jfquestiaux Well-Known Member

    Level: Professional
    Hi,
    I use the following code that you provided me in my template to have the message "XXX characters left" in different languages :

    <script>
    window.addEvent('load', function() {
    $$('.fabrik_characters_left')[0].innerHTML = $$('.fabrik_characters_left')[0].innerHTML.replace(/Characters left/,'caractères restants');
    });
    window.addEvent('load', function() {
    $$('.fabrik_characters_left')[1].innerHTML = $$('.fabrik_characters_left')[1].innerHTML.replace(/Characters left/,'caractères restants');
    });
    </script>

    That was working fine with 2.0.rc5 but I have now upgraded to 2.0.2 and now the message is displayed only in the default language of the site.
    I guess it is a syntax problem related to Mootools 1.2.4 but I have no clue what it could be.
    I'd appreciate if someone could correct the above code.
  2. jfquestiaux Well-Known Member

    Level: Professional
    OK, it is working again (not too sure why, but...)
  3. rob Administrator

    Level: Community
    I would blame those pesky lunar cycles!
Thread Status:
Not open for further replies.

Share This Page