"; $out .= ""; $out .= ""; return $out; } // Implement WT_Module_Tab public function canLoadAjax() { return false; } // Implement WT_Module_Tab public function getPreLoadContent() { return ''; } // Implement WT_Module_Tab public function getJSCallbackAllTabs() { return ''; } // Implement WT_Module_Tab public function getJSCallback() { $out = 'if (selectedTab=="'.$this->getName().'") {'; foreach($this->controller->tabs as $tab) { if ($tab->getName()!=$this->getName() && $tab->canLoadAjax()) { $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!="all_tab") { jQuery(this).removeClass("ui-tabs-hide"); } }); } '; return $out; } }