public function getJavaScript() { $javascript = parent::getJavaScript(); return $javascript . <<<JAVASCRIPT window['{$this->getJsObjectName()}'] = {$this->getJsObjectName()}; JAVASCRIPT; }
/** * Before rendering html operations * * @return Enterprise_SalesArchive_Block_Adminhtml_Sales_Order_Grid_Massaction */ protected function _beforeToHtml() { $isActive = Mage::getSingleton('enterprise_salesarchive/config')->isArchiveActive(); if ($isActive && Mage::getSingleton('admin/session')->isAllowed('sales/archive/order/add')) { $this->addItem('add_order_to_archive', array('label' => Mage::helper('enterprise_salesarchive')->__('Move to Archive'), 'url' => $this->getUrl('*/sales_archive/massAdd'))); } return parent::_beforeToHtml(); }
public function getJavaScript() { // checking if need to remove massactions, but need to display advanced filters if (!isset($this->getParentBlock()->hideMassactionColumn) || !$this->getParentBlock()->hideMassactionColumn) { $javascript = parent::getJavaScript(); return $javascript . <<<HTML window['{$this->getJsObjectName()}'] = {$this->getJsObjectName()}; HTML; } return ''; }
public function __construct() { parent::__construct(); $this->setTemplate('mailchimp/widget/grid/bulkaction.phtml'); $this->setErrorText(Mage::helper('catalog')->jsQuoteEscape(Mage::helper('mailchimp')->__('Please complete all fields.'))); }
public function __construct() { parent::__construct(); $this->setTemplate('noovias/extensions/widget/grid/massaction.phtml'); }