_objectId = 'id'; $this->_blockGroup = 'aw_hdu3'; $this->_controller = 'adminhtml_quickresponse'; parent::__construct(); $this->_formScripts[] = " function saveAndContinueEdit(url) { editForm.submit(url); } "; } public function getHeaderText() { $title = $this->__('New Quick Response'); $template = Mage::registry('current_template'); if (null !== $template->getId()) { $title = $this->__('Edit Quick Response "%s"', $template->getTitle()); } return $title; } public function getHeaderCssClass() { return 'head-' . strtr($this->_controller, '_', '-'); } protected function _prepareLayout() { $this->_addButton( 'save_and_continue', array( 'label' => $this->__('Save and Continue Edit'), 'onclick' => 'saveAndContinueEdit(\'' . $this->_getSaveAndContinueUrl() . '\')', 'class' => 'save' ), 10 ); parent::_prepareLayout(); } protected function _getSaveAndContinueUrl() { return $this->getUrl( '*/*/save', array( '_current' => true, 'continue' => 1, ) ); } }