Latest News : 亮瞎双眼的那些年!

magento加强型评论插件修正版1.7.9中出现的时间无法获焦修改

Magento admin 1676 views 0 comments

magento加强型插件是一款非常不错的商业插件,目前拿到的最新版本有几个小问题,根据客户的反应我们修正了它。

修改 app\code\local\MageWorkshop\DetailedReview\Block\Adminhtml\Review

的两个form.php文件

原来代码为

$fieldSet->addField('created_at', 'date', array(
'label' => Mage::helper('review')->__('Created at'),
'required' => false,
'name' => 'created_at',
'time' => true,
'format' => $dateTimeFormat,

'image' => $this->getSkinUrl('images/grid-cal.gif'),
'style' => 'width: 140px;'
));

修改后为

$fieldSet->addField('created_at', 'date', array(
'label' => Mage::helper('review')->__('Created at'),
'required' => false,
'name' => 'created_at',
'time' => true,
/*'format' => $dateTimeFormat,*/
'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'style' => 'width: 140px;'
));

Please indicate: 无趣的人生也产生有意思的事件 » magento加强型评论插件修正版1.7.9中出现的时间无法获焦修改

Hi, you must log in to comment !