MyBB Community Forums
[Rejected] [bug]Javascript conflict - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Rejected (https://community.mybb.com/forum-184.html)
+----- Thread: [Rejected] [bug]Javascript conflict (/thread-157725.html)



[bug]Javascript conflict - ekoice - 2014-08-18

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> 

                 


and even if you add just 

<script type="text/javascript">
jQuery.noConflict();
</script>



RE: [bug]Javascript conflict - .m. - 2014-08-18

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 ..


RE: [bug]Javascript conflict - Diogo Parrinha - 2014-08-18

You're loading jQuery twice. Rejecting this as there is no conflict.