test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • sema110 Friend
    #157642

    Hi Everyone,
    Especially Mr. Hung who somehow magically comes and goes in all these support forums!

    I’m experiencing a problem in Chrome (Firefox and IE are ok) in which my main menu in the norite template is open when i first open my site’s homepage. and the interesting thing is two of the menu items are open and not just one! of course some time back while editting the site there was just one. When i click any of the menu items and am referred to the related page, the problem is cleared. even if I click the Homepage link, I will not see any problems arise. it’s just at the moment I open the site all together.
    Since it’s still on local, I have included a screenshot of the newly opened site.
    Please help me be able to upload the new site soon without the mentioned problem!


    1. norite-menu-problem
    Khanh Le Moderator
    #367686

    You may following this steps to fix the problem
    – Open file templates/ja_norite/js/menu/mega.js
    – Find the line 208:


    if (li.childcontent) li.timer = setTimeout(this.itemHide.bind(this, [li, e]), this.options.delayHide);

    – Change to


    if (li.childcontent) li.timer = setTimeout(this.itemHide.pass([li, e], this), this.options.delayHide);

    sema110 Friend
    #367803

    Thank you Khanh. I took a look at the file and my version was on line 211 like this:

    if (li.childcontent) li.timer = setTimeout(this.itemHide.bind(this, [li, e]), this.options.delayHide);

    so it had the bind property but the variables were misplaced. I tried changing it to:

    if (li.childcontent) li.timer = setTimeout(this.itemHide.bind([li, e], this), this.options.delayHide);

    but it had no effect after ctrl+F5ing a few times, apparently it’s some other problem.
    Thanks again though.
    Waiting for more help!

    Khanh Le Moderator
    #367860

    Sorry, I make a mistake. We must change the bind function to pass function. I’ve update the above post. Please update your script and refresh the page again.

    sema110 Friend
    #367969

    Thanks man! That was all there was to it!
    Perfectly pinpointed!

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

This topic contains 5 replies, has 2 voices, and was last updated by  sema110 14 years ago.

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