Bootstrap Menu Disappears

Denny Wong
Denny Wong
Offline
0
Running Blank Template Bootstrapped in combination with DJCatalog extension and FormMaker extension. Menu works in all cases except when I go to a DJCatalog page (Products) or a FormMaker page (Contact). From these pages, when I click on the menu selections, the selection disappears.

It seems like some sort of conflict in the javascript.

Has anyone seen this problem? Any help would be great.

I will leave the site online for the weekend but it is still being worked on.
Responses (1)
  • Accepted Answer

    Denny Wong
    Denny Wong
    Offline
    Saturday, 21. February 2015, 23:17 - #permalink
    0
    It appears to be a Bootstrap Joomla (more specifically MooTools) issue.

    This script in the head of the template index seems to fix this problem:

    if (MooTools != undefined) {
    var mHide = Element.prototype.hide;
    Element.implement({
    hide: function() {
    if (this.hasClass("deeper")) {
    return this;
    }
    mHide.apply(this, arguments);
    }
    });
    }

    Alternatively this also works:

    <script type="text/javascript">
    window.addEvent('domready',function() {

    Element.prototype.hide = function() {
    // Do nothing
    };
    });
    The reply is currently minimized Show
Your Reply