Problem with script and loader xenforo

Allan

Well-known member
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 ? :(
 
That probably is indeed the cause.

But in case it isn't, check the console in your browser.
 
Top Bottom