Magento News

 

Magento javascript object

in Mage_Adminhtml_Block_Customer_Edit_Tab_Cart, in the _prepareColumns() function they add a column for action, there you can see

'onclick' =>  'return ' . $this->getJsObjectName() . 'cartControl.removeItem($item_id);'

so i try to do the same with my custom module,

'onclick' =>  'return ' . $this->getJsObjectName() . 'comentarioControl.removeItem($item_id);'

but all i get is noticia_comentario_grid10JsObjectcomentarioControl is not defined error, so, where can i define that, i don’t understand

thanks

Magento javascript object

Possibly Related Posts:


 

Leave a Reply