• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Problem with script and loader xenforo

Allan

Well-known member
#1
I use this script for an add-on:

Code:
<script type='text/javascript' src='http://code.jquery.com/jquery-1.11.1.min.js'></script>
    <script type="text/javascript">
        $(function() {
            var offset = $("#sidebar").offset();
            var topPadding = 15;
            $(window).scroll(function() {
                if ($(window).scrollTop() > offset.top) {
                    $("#sidebar").stop().animate({
                        marginTop: $(window).scrollTop() - offset.top + topPadding
                    });
                } else {
                    $("#sidebar").stop().animate({
                        marginTop: 0
                    });
                };
            });
        });
    </script>
But it breaks the loader popup to xenforo:
In that example, i click on username "Admin".

popup.gif

An idea please ? :(