Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [JavaScript] Text / MyCode Editor Not Showing
#1
Not Solved
I have been adding certain little bits of javascript for menus and it works great, except the MyCode editor doesn't show up unless I remove the following code:


<script type="text/javascript">
jQuery.noConflict();
$(document).ready(function() {    
$('.flm').on('click', function(){
        $('.flms').slideToggle('100');
        return false;
    });
    $('html, body').on('click',function(){
        $('.flms').slideUp('100');
    });
    $(".flms").click(function(e){
        e.stopPropagation();
    });
});
</script>

<script type="text/javascript">
jQuery.noConflict();
$(document) .ready(function() {    
$('.flp').on('click', function(){
        $('.flps').slideToggle('100');
        return false;
    });
    $('html, body').on('click',function(){
        $('.flps').slideUp('100');
    });
    $(".flps").click(function(e){
        e.stopPropagation();
    });
});
</script>

This code is for a dropdown menu in the header_welcomeblock_member template and the other is for a dropdown in member_profile template.

Obviously that disables the dropdown menu I have but whats weird is, removing that code also messes with the quick reply by replying but showing the spinner constantly. It also disables all the MyBB dropdowns aswell. Not sure whats going on, but since adding it, it's like I can't take it out.

Also, if you require my headerinclude template in it's entirety just say. Although, I have taken each line out to see if the problem persists and I have only managed to see a difference adding/removing the good above. I am no good with javascript, hence why I need help.
Reply
#2
Not Solved
have you tried removing jQuery.noConflict(); from both the scripts and check.. since 1.8 uses jquery by default you may not need the noconflict script..
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#3
Not Solved
Hello,

Yes I tried removing the noConflict too without success.
Reply
#4
Not Solved
may i have your forum url and a test account if the forum is closed for guests..
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)