Skip to content

Commit

Permalink
Dev: label bar close button
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 22, 2016
1 parent baf298f commit f86244b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/labels.php
Expand Up @@ -209,7 +209,7 @@ public function index($sa, $lid=0)
$aData['labelbar']['buttons']['edition']= TRUE;
$aData['labelbar']['savebutton']['form'] = 'labelsetform';
$aData['labelbar']['savebutton']['text'] = gT("Save");
$aData['labelbar']['closebutton']['url'] = 'admin/labels/sa/view';
$aData['labelbar']['closebutton']['url'] = Yii::app()->request->getUrlReferrer( Yii::app()->createUrl('admin/labels/sa/view') );
$this->_renderWrappedTemplate('labels', $aViewUrls, $aData);

}
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/labels/labelsetsbar_view.php
Expand Up @@ -121,7 +121,7 @@

<?php echo $labelbar['savebutton']['text'];?>
</a>
<a class="btn btn-danger" href="<?php echo $this->createUrl($labelbar['closebutton']['url']); ?>" role="button">
<a class="btn btn-danger" href="<?php echo $labelbar['closebutton']['url']; ?>" role="button">
<span class="glyphicon glyphicon-close" ></span>
<?php eT("Close");?>
</a>
Expand Down

0 comments on commit f86244b

Please sign in to comment.