test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • claude_troncy Friend
    #149265

    Hello everybody,
    I am new to Joomla and purity 2 template.
    In mega.clas.php I changed action:’mouseover’ by action: ‘click’. It does exactly what I wanted. The menu is only displayed when I click on it and not when the mouse fly over, which sometimes is disturbing.

    But the problem is It was impossible to click on a submenu to load an article, nothing happens.

    I also noticed that the tips variable is set to false, but thoses tips are nevertheless displayed.

    Any idea
    Merci
    Best regards
    Claude

    claude_troncy Friend
    #336007

    After testing a lot trying to find why it was not working I suspected there was something wrong with the “mouse click action” in the module mega.js . It looks that this “click action” was going round in circles.
    SO I changed some “click” by “mousedown”
    1
    if (this.options.action==’click’) {
    if (li.childcontent) {
    // Before li.addEvent(‘click’, function(e) {
    li.addEvent(‘mousedown’, function(e) {

    2 In itemShow
    if (this.options.action==’click’ && this.childopen.length && !this.windowClickEventAdded) {
    //addEvent click for window
    // Before $(document.body).addEvent (‘click’, this.windowClickFn);
    $(document.body).addEvent (‘mousedown’, this.windowClickFn);

    3 In ItemHide
    if (this.options.action==’click’ && !this.childopen.length && this.windowClickEventAdded) {
    //removeEvent click for window
    // before $(document.body).removeEvent (‘click’, this.windowClickFn);
    $(document.body).removeEvent (‘mousedown’, this.windowClickFn);

    Now it is working. Please do not ask me why.:)

    regards

    Claude

    David Porré Friend
    #360872

    Hello claude_troncy,

    Nice workaround ! I tried it and it works, but there is a little problem at mys side…
    I lost the mouseover effect (menu item chanignig color when the mouse is on it), do you also have that problem ?

    And I would like even a bit more, I would like the submenu staying open when navigating in it’s links or pages…
    Any idea on that one ?

    Hoping for answers,
    best regards,
    David aka Shapes

    foof132 Friend
    #378484

    Hi claude_troncy,

    Was your modification able to work in IE? I applied your solution and it worked great in Firefox, Safari and Chrome but the dropdowns were not displaying for me in IE 7 and 8.

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

This topic contains 4 replies, has 3 voices, and was last updated by  foof132 13 years, 10 months ago.

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