MyBB Community Forums

Full Version: [bug]Javascript conflict
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Adding javascript to headerinclude it seems to have a major inpact on editor and moderating options

I have a javascript for a dropdown menu from my old theme 



<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($)
{
        $('#login-drop').click(function(){
                $(this).next('#login-continut').slideToggle();
                $(this).toggleClass('active');                               
                if ($(this).hasClass('active')) $(this).find('span').html('&#x25B2;')
                else $(this).find('span').html('&#x25BC;')
   })
}); 
</script> 

[attachment=32206]   [attachment=32208]   [attachment=32207]


and even if you add just 

<script type="text/javascript">
jQuery.noConflict();
</script>
as jQuery is already included in MyBB 1.8 , check whether your jQ based menu works without using minified jQuery.
and there should be no need of no conflict code ..
You're loading jQuery twice. Rejecting this as there is no conflict.