public function getJavaScript() { /* Compatibility with Amasty extensions */ $result = new Varien_Object(array('js' => parent::getJavaScript(), 'page' => $this->getRequest()->getControllerName())); Mage::dispatchEvent('am_grid_massaction_js', array('result' => $result)); if (in_array($this->getRequest()->getControllerName(), Mage::getSingleton('gridactions/observer')->getControllerNames())) { if (Mage::helper('gridactions/data')->getModuleEnabled() && Mage::getStoreConfigFlag('gridactions/general/add_trackingnumber_from_grid')) { return str_replace('varienGridMassaction', 'extendedGridMassaction', $result->getJs()); } } return $result->getJs(); }
protected function _beforeToHtml() { $this->addItem('amemail', array('label' => Mage::helper('amemail')->__('Email to Customers'), 'url' => $this->getUrl('amemail/adminhtml_index/index', array()))); return parent::_beforeToHtml(); }
public function __construct() { parent::__construct(); $this->setTemplate('giftwrap/massaction.phtml'); $this->setErrorText(Mage::helper('catalog')->jsQuoteEscape(Mage::helper('catalog')->__('Please select items.'))); }
/** * */ protected function _construct() { //$this->setUseAjax(true); parent::_construct(); }