custom.js not dollar safe

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

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #3736

    datanova
    Participant

    Unknow

    Whether it is the template or another component/module, both MooTools and jQuery are being loaded on my site. This is in turn breaking custom.js for most script calls after $(document).ready as custom.js largely does not use no-conflict wrappers.

    A couple of examples..

    TypeError: $(‘.image-bg’) is null
    http://domain.xyz/templates/mist/js/custom.js
    Line 1148

    TypeError: $(‘.map-canvas’) is null
    http://domain.xyz/templates/mist/js/custom.js
    Line 1178

    #3764

    Supporter
    Moderator

    Hi, sorry about that problem. Can you give me your ftp and adminpanel account, we’ll live check for you.
    Thanks.

    #3774

    datanova
    Participant

    Unknow
    This reply has been marked as private.
    #3809

    Supporter
    Moderator
    This reply has been marked as private.
    #3824

    datanova
    Participant

    Unknow
    This reply has been marked as private.
    #3845

    Supporter
    Moderator

    Hi, please tell me what page conflict js ?

    #5570

    jessekontent
    Participant

    Unknow

    Hello,

    I am having the same issue as described above. Do you have an updated file or can you post a fix here?

    Thanks,

    Jesse

    #5607

    Supporter
    Moderator

    hi,
    please tell me your admin panel account and what page conflict js?
    thanks.

    #5613

    jessekontent
    Participant

    Unknow
    This reply has been marked as private.
    #5626

    Supporter
    Moderator

    Could you give me supper account or ftp account, so i will re-edit js source for you.
    thanks.

    #5644

    jessekontent
    Participant

    Unknow
    This reply has been marked as private.
    #5724

    Supporter
    Moderator

    I have fixed conflict js in custom.js for you.
    About easyblog extension, very sorry but this template not support for easyblog extension.
    Thanks.

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

You must be logged in to reply to this topic.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+