Skip to content

Commit

Permalink
Merge pull request #7 from rjocoleman/back-button
Browse files Browse the repository at this point in the history
Add back button to job view
  • Loading branch information
jkowens committed Jun 15, 2015
2 parents e514b41 + 746526c commit b1d5601
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public function __construct()

parent::__construct();

$this->_addButton('back', array(
'label' => Mage::helper('catalog')->__('Back'),
'onclick' => 'setLocation(\''.$this->getUrl('*/*/', array('store'=>$this->getRequest()->getParam('store', 0))).'\')',
'class' => 'back'
), 0, -20);
$confirmMsg = $this->__('Are you sure you want to do this?');
$resubmitUrl = $this->getUrl('*/*/resubmit', array('id' => $this->_job->getId()));
$this->_addButton('resubmit', array(
Expand All @@ -32,7 +37,7 @@ public function __construct()

public function getHeaderText()
{
return $this->__("Job: \"%s\"", $this->_job->getName());
return $this->__("Job: \"%s\"", $this->_job->getName());
}

protected function _toHtml()
Expand Down

0 comments on commit b1d5601

Please sign in to comment.