Problem with MD MegaMenu (jQuery)

pros's picture
pros
Tue, 06/13/2017 - 01:10
#1
Problem with MD MegaMenu (jQuery)

Hi, i have problem with md megamenu. When i’am adding simple menu link (no dropdown) it dosn’t work (i can’t click and open it). The problem partially solves jquery downgrade to 1.8, but a lot of template parts stop working, because template requires version 1.9 or higher. Can anybody help me, please?

phuonght's picture
phuonght
Tue, 06/13/2017 - 03:40

Hi,

Which is your current version of Megamenu?

pros's picture
pros
Tue, 06/13/2017 - 15:15

My current version of Megamenu is 7.x-1.20, but i have in reports info there is an updated version and recommended version is 7.x-1.19 (2016-oct-14). This is strange. Why does Drupal show me that I should have an older version?

phuonght's picture
phuonght
Tue, 06/13/2017 - 22:15

Please send us your site admin account and FTP account by private comment so we can have a check.

Thank you.

phuonght's picture
phuonght
Thu, 06/15/2017 - 23:58

Hi,

Please go to menu settings, uncheck "Use jquery 1.7.2 and jquery ui 1.8.7 available in megamenu module."

Image title

Also, you can please check email for updated version of Megamenu.

pros's picture
pros
Sun, 06/18/2017 - 16:32

Hi,

Thank you, but it dosnt solve my problem. I have two simple links in menu (Homepage and Contact) and they are inactive and i can not click on them and go to the subpages.

phuonght's picture
phuonght
Sun, 06/18/2017 - 23:43

We fixed by going to file md_brilliant/js/front/main.js, replace 

$(".awemenu-item-link").on( "click", function(e) {
e.preventDefault();
$(this).toggleClass("active");
$(this).siblings("ul").toggleClass("open");
});

with 

$(".awemenu-item-link").on( "click", function(e) {
if($(this).parent().find('> ul').length){
e.preventDefault();
$(this).toggleClass("active");
$(this).siblings("ul").toggleClass("open");
}
});

to solve problem menu item without submenu not redirecting.

You can check your site please.

stebentje's picture
stebentje
Thu, 07/06/2017 - 09:39

Thanks, this works fine!

pacusi's picture
pacusi
Mon, 03/26/2018 - 03:53

Well documented... this fixed my problem also.

pros's picture
pros
Tue, 06/27/2017 - 05:33

I find some issues with MD MegaMenu. Mainly that the responsive part of it is not working correctly. When you click on the bars no menu slides out. Then when I looked at the bottom of the screen I see a horizontal scroll bar in which you can see another set of bars for the menu. Similar problem is with product quick view. Please check on your demo version.

Thank you in advance

phuonght's picture
phuonght
Wed, 06/28/2017 - 04:53

Our demo still works normally on iphone and android devices. Please test responsive again with mobile devices only.

Martin_Xiao's picture
Martin_Xiao
Mon, 05/14/2018 - 03:21

Hi,

Tried to install the theme on drupal 7, always show the loading pagec(<div id="loader-wrapper">), What I found in the console is like that.

Uncaught TypeError: $(...).aweMenu is not a function
    at HTMLDocument.<anonymous> (main.js?p8paod:676)
    at c (jquery.min.js?v=1.10.2:4)
    at Object.fireWith [as resolveWith] (jquery.min.js?v=1.10.2:4)
    at Function.ready (jquery.min.js?v=1.10.2:4)
    at HTMLDocument.q (jquery.min.js?v=1.10.2:4)
By the way.

cindy's picture
cindy
Tue, 05/15/2018 - 00:03

Hi Martin_Xiao

That is because the file javascript is missing when you upload to your server 

Please check again if there is file javascript in folder js (sites\all\themes\md_brilliant\js)

Martin_Xiao's picture
Martin_Xiao
Tue, 05/29/2018 - 02:01

Hi Cindy

Thanks, I think my problem is: install the theme with php7.1, everything works well after switch back to php5.6

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.