The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Code error.

    avatar
    Guest
    Guest


    Code error. Empty Code error.

    Post by Guest December 9th 2014, 4:47 pm

    Hello guys, on the top of topics I have this error coming up.


    Code:
    script type="text/javascript">// 0){$('.post--' + id).toggle(0, function(){if( $(this).is(":visible") ){$('#hidden-title--' + id).html(hiddenMsgLabel.visible);}else{$('#hidden-title--' + id).html(hiddenMsgLabel.hidden);}});}}catch(e) { }return false;};//]]>

    How do I fix this, please tell me what to do.
    avatar
    Guest
    Guest


    Code error. Empty Re: Code error.

    Post by Guest December 9th 2014, 5:09 pm

    Never mind it was some viewtopic_body glitch, just fixed it. Wink
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Code error. Empty Re: Code error.

    Post by JScript December 9th 2014, 5:13 pm

    Hello!

    I tried to reassemble this fragment of code as follows:
    Code:

    <script type="text/javascript">
       //<![CDATA[
       jQuery(function() {
          try {
             $('.post--' + id).toggle(0, function() {
                if ($(this).is(":visible")) {
                   $('#hidden-title--' + id).html(hiddenMsgLabel.visible);
                } else {
                   $('#hidden-title--' + id).html(hiddenMsgLabel.hidden);
                }
             });
          } catch (e) {
             console.log(e);
          };
          return false;
       });
       //]]>
    </script>
    But I'm curious how this code became that way!

    JS
    avatar
    Guest
    Guest


    Code error. Empty Re: Code error.

    Post by Guest December 9th 2014, 5:18 pm

    The theme must of went that way with a code error, but it's fixed now because I updated it to the old one again, I request a topic lock.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Code error. Empty Re: Code error.

    Post by SLGray December 9th 2014, 9:37 pm

    Locked as Requested



    Code error. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is November 12th 2024, 12:57 am