Example #1
0
 public function addTab($tabId, $tab)
 {
     parent::addTab($tabId, $tab);
     if ($this->getId() . '_' . $tabId == $this->activeTab) {
         $this->setActiveTab($tabId);
     }
 }
Example #2
0
 /**
  * Add new tab
  *
  * @param   string $tabId
  * @param   array|Varien_Object $tab
  * @return  Mage_Adminhtml_Block_Widget_Tabs
  */
 public function addTab($tabId, $tab)
 {
     parent::addTab($tabId, $tab);
     if ($this->_tabs[$tabId] instanceof Mage_Core_Block_Abstract && $this->_tabs[$tabId]->getParentBlock() === null) {
         $this->append($this->_tabs[$tabId]);
     }
     return $this;
 }