Problem with script and loader xenforo

Allan

Well-known member
Licensed customer
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 ? :(
 
First things first, don't include jquery with your script because xf already includes it.
 
That probably is indeed the cause.

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