Index: mod1/index.php =================================================================== --- mod1/index.php (revision 30726) +++ mod1/index.php (working copy) @@ -449,6 +449,9 @@ ' ); + // Preparing context menues + // this also adds prototype to the list of required libraries + $CMparts = $this->doc->getContextMenuCode(); //Prototype /Scriptaculous // prototype is loaded before, so no need to include twice. @@ -464,13 +467,11 @@ } } - // Set up JS for dynamic tab menu and side bar $this->doc->JScode .= $this->doc->getDynTabMenuJScode(); $this->doc->JScode .= $this->modTSconfig['properties']['sideBarEnable'] ? $this->sideBarObj->getJScode() : ''; // Setting up support for context menus (when clicking the items icon) - $CMparts = $this->doc->getContextMenuCode(); $this->doc->bodyTagAdditions = $CMparts[1]; $this->doc->JScode.= $CMparts[0]; $this->doc->postCode.= $CMparts[2];