<?php
/*
 * @author     M2E Pro Developers Team
 * @copyright  M2E LTD
 * @license    Commercial use is forbidden
 */

// @codingStandardsIgnoreFile

/** @var $this Ess_M2ePro_Block_Adminhtml_Order_General */

?>

<script type="text/javascript">

    M2ePro.php.setConstants(<?php echo Mage::helper('M2ePro')->getClassConstantAsJson('Ess_M2ePro_Model_Log_Abstract'); ?>,'Ess_M2ePro_Model_Log_Abstract');

    M2ePro.url.add(<?php echo json_encode(array(
        'adminhtml_ebay_order/view' => $this->getUrl(
            'M2ePro/adminhtml_ebay_order/view',
            array('back'=>Mage::helper('M2ePro')->makeBackUrlParam('M2ePro/adminhtml_ebay_order/index'))
            ),
        'adminhtml_amazon_order/view' => $this->getUrl(
            'M2ePro/adminhtml_amazon_order/view',
            array('back'=>Mage::helper('M2ePro')->makeBackUrlParam('M2ePro/adminhtml_amazon_order/index'))
            )
    )); ?>);

    M2ePro.translator.add(<?php echo json_encode(array(
        'View All Order Logs.' => Mage::helper('M2ePro')->__('View All Order Logs.')
    )); ?>);

    Event.observe(window, 'load', function() {
        OrderObj = new Order('<?php echo json_encode($this->getGridIds()); ?>');
        OrderObj.initializeGrids();
    });

</script>