Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • hockey2112 Friend
    #177762

    Hello,

    I installed and configured MiniK2 to display a few items in its “simple” sub-template setting. Unfortunately, this seems to be causing an issue with Mega Menu. The error message I receive is:

    Error: this.menu.getElements is not a function
    Source File: http://mysite.com/plugins/system/jat3/jat3/base-themes/default/js/menu/mega.js
    Line: 42

    The site is not yet live, so I am unable to provide its address as an example. Any ideas on how I can fix this javascript issue? I have installed jQuery Easy, but that did not fix the issue… it only broke the MiniK2’s full functionality that is provided by jQuery.

    Thanks!

    MoonSailor Friend
    #455787

    Hi hockey2112!

    Because modules minik2 code js:

    $ = jQuery.noConflict();
    $(window).load(function(){

    var $container = $(“#minik2′.$modid.'”);
    $container.imagesLoaded(function(){
    $container.masonry({
    itemSelector : ‘.block’
    });
    })
    });

    in line 108 of file “modules/mod_minik2/mod_minik2.php” conflict with mootools. Please replace it by :

    $j = jQuery.noConflict();
    $j(window).load(function(){

    var $jcontainer = $j(“#minik2′.$modid.'”);
    $jcontainer.imagesLoaded(function(){
    $jcontainer.masonry({
    itemSelector : ‘.block’
    });
    })
    });
    Regards.

    hockey2112 Friend
    #456349

    <em>@MoonSailor 323299 wrote:</em><blockquote>Hi hockey2112!

    Because modules minik2 code js:

    $ = jQuery.noConflict();
    $(window).load(function(){

    var $container = $(“#minik2′.$modid.'”);
    $container.imagesLoaded(function(){
    $container.masonry({
    itemSelector : ‘.block’
    });
    })
    });

    in line 108 of file “modules/mod_minik2/mod_minik2.php” conflict with mootools. Please replace it by :

    $j = jQuery.noConflict();
    $j(window).load(function(){

    var $jcontainer = $j(“#minik2′.$modid.'”);
    $jcontainer.imagesLoaded(function(){
    $jcontainer.masonry({
    itemSelector : ‘.block’
    });
    })
    });
    Regards.</blockquote>

    You. Are. A. Lifesaver! That worked perfectly, thank you!

    hockey2112 Friend
    #461328

    Any idea on how to fix the same issue, on this page: http://tinyurl.com/7y7atoj?

    I believe the conflict is with the (standard) k2 gallery on that page, powered by Single Image Gallery.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  hockey2112 12 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum