Skip to content
Snippets Groups Projects
Commit 31f27a3d authored by khawkins98's avatar khawkins98
Browse files

Add buffer to menu load

parent d1b67be5
No related branches found
No related tags found
No related merge requests found
......@@ -148,14 +148,15 @@ if (jQuery('body').hasClass('google-analytics-loaded')) {
$.fn.foundationExtendEBI = function() {
// Activate EMBL dropdown menu
// Note: the menu content has already been added in script.js
(function activateEMBLdropdown() {
// the menu has already been added in script.js
try {
var options = {closeOnClick: true},
dropdownEbiMenu = new Foundation.Dropdown($('#embl-dropdown'), options);
}
catch(err) {};
setTimeout(function() { // A small buffer incase scripts are loaded out of order
try {
var options = {closeOnClick: true},
dropdownEbiMenu = new Foundation.Dropdown($('#embl-dropdown'), options);
}
catch(err) {};
}, 200);
})();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment