Exemplo n.º 1
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if ($this->getRequest()->getModuleName() == 'admin' && $this->getRequest()->getControllerName() == 'system_config' && $this->getRequest()->getActionName() == 'edit' && $this->getRequest()->getParam('section') == 'onestepcheckout') {
         $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Save Config'), 'onclick' => 'checkValueRequire()', 'class' => 'save')));
     } else {
         $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Save Config'), 'onclick' => 'configForm.submit()', 'class' => 'save')));
     }
 }
 protected function _prepareLayout()
 {
     $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Save Config'), 'onclick' => 'configForm.submit()', 'class' => 'save')));
     return parent::_prepareLayout();
 }
Exemplo n.º 3
0
 protected function _prepareLayout()
 {
     /* Inject our quick search block */
     $this->setChild('qsearch', $this->getLayout()->createBlock('qconfig/adminhtml_qsearch'));
     return parent::_prepareLayout();
 }