Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • sjmorris Friend
    #161125

    Hello,

    Having problems with Mega Menu not hiding after a mouseover on Chrome and FireFox 4 as described in these threads:

    http://www.joomlart.com/forums/topic/solution-mega-menu-freezes-in-chrome-doesnt-go-back-up/

    http://www.joomlart.com/forums/topic/mega-menu-issue-google-chrome-7-0-517-41-also-on-joomlart-com/

    The solution seems to be to simply “Upgrade to T3 Framework” which JA_Seleni does not support. What is the fix for this?

    huypl Friend
    #380921

    Hello sjmorris,
    To solve this problem just do the following as posted by joomboom. I’ve downloaded JA Seleni and had the same problem. Then I use this way to solve the problem of Mega Menu.
    1. Open templatesja_selenilibsmenubase.class.php – find the following lines:

    $v->url = JURI::base();
    and replace with:
    $v->url = JURI::base(true).’/’;
    and this line:
    $itembg = ‘style=”background-image:url(‘.JURI::base().’/images/stories/’.$iParams->get(‘menu_image’).’);”‘;
    replace with:
    $itembg = ‘style=”background-image:url(‘.JURI::base(true).’/images/stories/’.$iParams->get(‘menu_image’).’);”‘;
    and this line:
    $txt = ‘<span class=”menu-image”><img src=”‘.JURI::base().’/images/stories/’.$iParams->get(‘menu_image’).'” alt=”‘.$tmp->name.'” title=”‘.$tmp->name.'” /></span><span class=”menu-title”>’ . $tmp->name . ‘</span>’;
    replace with:
    $txt = ‘<span class=”menu-image”><img src=”‘.JURI::base(true).’/images/stories/’.$iParams->get(‘menu_image’).'” alt=”‘.$tmp->name.'” title=”‘.$tmp->name.'” /></span><span class=”menu-title”>’ . $tmp->name . ‘</span>’;

    2. Open templatesja_selenijsmenumega.js

    find this line :
    if (li.childcontent) li.timer = setTimeout(this.itemHide.bind(this, [li, e]), this.options.delayHide);
    – and replace with this one:
    if (li.childcontent) li.timer = this.itemHide.delay(this.options.delayHide, this, [li, e]);

    I try this way and mega menu works well in Chrome version 10.0.648.127

    sjmorris Friend
    #381075

    Beautiful. Thank you so much for your help!

    harvas Friend
    #384108

    Also worked for JA Social. Different path-names of course! Great post!!!

    huypl Friend
    #384179

    Yes, It works for most of the templates harvas.

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

This topic contains 5 replies, has 3 voices, and was last updated by  huypl 13 years, 7 months ago.

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