_blockGroup = 'revslider'; $this->_controller = 'adminhtml_slide'; $this->_mode = 'animation'; parent::__construct(); $this->setId('editAnimationForm'); $this->_headerText = Mage::helper('revslider')->__('Custom Animation Form'); $this->removeButton('back'); $this->removeButton('reset'); $this->_updateButton('save', 'label', Mage::helper('revslider')->__('Save')); $windowId = $this->getRequest()->getParam('windowId'); $type = $this->getRequest()->getParam('type'); $aid = $this->getRequest()->getParam('aid'); $this->_updateButton('save', 'onclick', "revLayer.addCustomAnimation('{$windowId}', '{$type}')"); $this->_addButton('delete', array( 'label' => Mage::helper('revslider')->__('Delete'), 'class' => 'delete', 'onclick' => "revLayer.removeCustomAnimation('{$windowId}', '{$aid}')" )); } }