Skip to content

Commit

Permalink
Improve display multiple megamenu in website #594
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Mar 15, 2024
1 parent 5a362e4 commit c74839b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion js/megamenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@
});
};
$(window).on('load', function() {
$('[data-megamenu]').JDMegaMenu();
$('[data-megamenu]').each(function() {
$(this).JDMegaMenu();
});
});
})(jQuery);
2 changes: 1 addition & 1 deletion js/megamenu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c74839b

Please sign in to comment.