Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • polo974 Friend
    #206338

    Hi guys,

    I want to have a fixed sidebar on some pages of my template. I’ve followed this :

    http://www.t3-framework.org/discussions/how-to-add-bootstrap-affix-function-on-sidebar.html#reply-4017

    It worked fine in every major browsers, like Chrome, Firefox or IE. My problem is in Safari because the affix function doesn’t works in this browser with pull and push classes.

    You can see it there :

    http://polymetis.fr/gmpca/association-gmpca

    So I want to remove the .affix or the dataspy in Safary. I’ve found this :

    https://github.com/twbs/bootstrap/pull/16282

    I’ve added the code mentionned on the last post in a custom.js but it doesn’t work. I have this error in firebug :

    TypeError: ‘null’ is not an object (evaluating ‘$(“.affix-top”).removeAttr’)

    Can you help me ?

    Thx,

    Polo

    polo974 Friend
    #570545

    I got it, my DOM wasn’t ready !

    I’ve changed some stuff but it still doesn’t work, and I’m a very beginner with javascript… If someone better at it can have a look, maybe there is something obvious that i’m unable to see !

    Ninja Lead Moderator
    #570680

    Have you sorted out it? I checked on Safari browser and saw it’s working fine


    1. Screen-Shot-2015-05-15-at-18.26.59
    Ninja Lead Moderator
    #735743

    Have you sorted out it? I checked on Safari browser and saw it’s working fine

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

This topic contains 4 replies, has 2 voices, and was last updated by  Ninja Lead 9 years ago.

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