getName().'_content">'; $out .= ""; $out .= ""; return $out; } // Implement WT_Module_Tab public function canLoadAjax() { return true; } // Implement WT_Module_Tab public function getPreLoadContent() { return ''; } // Implement WT_Module_Tab public function getJSCallback() { $out='if (jQuery("#tabs li:eq("+jQuery("#tabs").tabs("option", "selected")+") a").attr("title")=="'.$this->getName().'") {'; foreach ($this->controller->tabs as $tab) { if ($tab->getName()!=$this->getName()) { $out.= ' if (!tabCache["'.$tab->getName().'"]) {'. ' jQuery("#'.$tab->getName().'").load("individual.php?action=ajax&module='.$tab->getName().'&pid='.$this->controller->pid.'");'. ' tabCache["'.$tab->getName().'"] = true;'. ' }'; } } $out.= ' jQuery("#tabs > div").each(function() {'. ' if (this.name!="'.$this->getName().'") {'. ' jQuery(this).removeClass("ui-tabs-hide");'. ' }'. ' });'. '}'; if (array_key_exists('googlemap', WT_Module::getActiveModules())) { global $GOOGLEMAP_PH_CONTROLS; $out.='if (jQuery("#tabs li:eq("+jQuery("#tabs").tabs("option", "selected")+") a").attr("title")=="'.$this->getName().'") {'. ' loadMap();'; if ($GOOGLEMAP_PH_CONTROLS) { $out.=' GEvent.addListener(map,"mouseout", function() { map.hideControls(); });'. ' GEvent.addListener(map,"mouseover",function() { map.showControls(); });'. ' GEvent.trigger (map,"mouseout");'; } $out.=' map.setMapType(GOOGLEMAP_MAP_TYPE);'. ' SetMarkersAndBounds();'. ' ResizeMap();'. '}'; } return $out; } }