Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento - this javascript file doesn't merge correctly
    primarykey
    data
    text
    <p>i have a magento 1.6.2 webshop.</p> <p>I would like to merge the javascript files for optimizing my loadingspeeds. But when i select merge in the settings my Custom Menu extensions doesn't work anymore.</p> <p>I guess there is something wrong in the code. I have tried to contact the developer, but i don't get a reaction ...</p> <p>This extension is for the navigation menu at the top (with images)</p> <p>Here is the code of the custommenu.js file:</p> <pre><code> function wpShowMenuPopup(objMenu, popupId) { objMenu = $(objMenu.id); var popup = $(popupId); if (!popup) return; popup.style.display = 'block'; objMenu.addClassName('active'); var popupWidth = CUSTOMMENU_POPUP_WIDTH; if (!popupWidth) popupWidth = popup.getWidth(); var pos = wpPopupPos(objMenu, popupWidth); popup.style.top = pos.top + 'px'; popup.style.left = pos.left + 'px'; if (CUSTOMMENU_POPUP_WIDTH) popup.style.width = CUSTOMMENU_POPUP_WIDTH + 'px'; } function wpPopupPos(objMenu, w) { var pos = objMenu.cumulativeOffset(); var wraper = $('custommenu'); var posWraper = wraper.cumulativeOffset(); var wWraper = wraper.getWidth() - CUSTOMMENU_POPUP_RIGHT_OFFSET_MIN; var xTop = pos.top - posWraper.top + CUSTOMMENU_POPUP_TOP_OFFSET; var xLeft = pos.left - posWraper.left; if ((xLeft + w) &gt; wWraper) xLeft = wWraper - w; return {'top': xTop, 'left': xLeft}; } function wpHideMenuPopup(element, event, popupId, menuId) { element = $(element.id); var popup = $(popupId); if (!popup) return; var current_mouse_target = null; if (event.toElement) { current_mouse_target = event.toElement; } else if (event.relatedTarget) { current_mouse_target = event.relatedTarget; } if (!wpIsChildOf(element, current_mouse_target) &amp;&amp; element != current_mouse_target) { if (!wpIsChildOf(popup, current_mouse_target) &amp;&amp; popup != current_mouse_target) { popup.style.display = 'none'; $(menuId).removeClassName('active'); } } } function wpIsChildOf(parent, child) { if (child != null) { while (child.parentNode) { if ((child = child.parentNode) == parent) { return true; } } } return false; } </code></pre> <p>You can see it working on my webshop: <a href="http://www.liefstoereigenwijs.nl" rel="nofollow">www.liefstoereigenwijs.nl</a></p> <p>Can anyone see if there is something wrong in the code? Or has a other solution for my problem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload