_blockGroup = 'revslider'; $this->_controller = 'adminhtml_slide'; $this->_mode = 'video'; parent::__construct(); $this->setId('addVideoForm'); $this->_headerText = Mage::helper('revslider')->__('Add Video Form'); $this->removeButton('back'); $this->removeButton('reset'); $this->_updateButton('save', 'label', Mage::helper('revslider')->__('Add')); $windowId = $this->getRequest()->getParam('windowId'); $this->_updateButton('save', 'onclick', "revLayer.addLayerVideo('{$windowId}')"); if ($serial = $this->getRequest()->getParam('serial')){ $this->_formScripts[] = "revLayer.assignVideoForm('{$serial}')"; }else{ $this->_formScripts[] = 'revLayer.toggleVideoForm(false)'; } } }