I need to integrate some Real Estate / MLS search tools (IDX) that use the Prototype framework with my JA Rasite template. There is a conflict, of course, with Mootools and my MegaMenus quit working when I am on pages with the search tools
According to MooTools (http://mootools.net/blog/2009/06/22/...lar-safe-mode/), I can resolve this conflict by implementing their Dollar Safe Mode.
I do not know javascript but I am hoping I can hack this solution. I am asking for some hand holding here. Here are my questions.
MooTools says:
What file would I apply this to? mega.class.php?directly use document.id() or assign your own var to it, or mannually assign $ to document.id
Here is a snippet from mega.class.php. How would I assign $ to document.id in this case?
Like I said, I need some hand holding. Maybe you have a different suggestion. Any feedback would be appreciated.Code:function genClass ($mitem, $level, $pos) { $iParams = new JParameter ( $mitem->params ); $active = in_array($mitem->id, $this->open); $cls = "mega".($active?" active":"").($pos?" $pos":""); if (@$this->children[$mitem->id] || (isset($mitem->content) && $mitem->content)) { if ($mitem->megaparams->get('group')) $cls .= " group"; else if ($level < $this->getParam('endlevel')) $cls .= " haschild"; } if ($mitem->megaparams->get('class')) $cls .= " ".$mitem->megaparams->get('class'); return $cls?"class=\"$cls\"":""; }



Reply With Quote
Click Thanks 

Bookmarks