*/ class Mage_Adminhtml_Block_Review_Add extends Mage_Adminhtml_Block_Widget_Form_Container { public function __construct() { parent::__construct(); $this->_controller = 'review'; $this->_mode = 'add'; $this->_updateButton('save', 'label', Mage::helper('review')->__('Save Review')); $this->_updateButton('save', 'id', 'save_button'); $this->_updateButton('reset', 'id', 'reset_button'); $this->_formScripts[] = ' toggleParentVis("add_review_form"); toggleVis("save_button"); toggleVis("reset_button"); '; $this->_formInitScripts[] = ' //getUrl('*/*/ratingItems').'", {parameters:params, evalScripts: true, onComplete:function(){ $(\'save_button\').disabled = false; } }); }, reqSuccess :function(o) { var response = Ext.util.JSON.decode(o.responseText); if( response.error ) { alert(response.message); } else if( response.id ){ $("product_id").value = response.id; $("product_name").innerHTML = \'\' + response.name + \'\'; } else if( response.message ) { alert(response.message); } } } }(); Event.observe(window, \'load\', function(){ if ($("select_stores")) { Event.observe($("select_stores"), \'change\', review.updateRating); } }); //]]> '; } public function getHeaderText() { return Mage::helper('review')->__('Add New Review'); } }