Example #1
0
 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();
 }