Skip to content

Commit

Permalink
Dev: full page bar close button referrer url
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 22, 2016
1 parent 197fd94 commit 021b9c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions application/core/Survey_Common_Action.php
Expand Up @@ -680,6 +680,11 @@ function _fullpagebar($aData)
{
if((isset($aData['fullpagebar'])))
{
if(isset($aData['fullpagebar']['closebutton']['url']))
{
$sAlternativeUrl = $aData['fullpagebar']['closebutton']['url'];
$aData['fullpagebar']['closebutton']['url'] = Yii::app()->request->getUrlReferrer( Yii::app()->createUrl($sAlternativeUrl) );
}
$this->getController()->renderPartial("/admin/super/fullpagebar_view", $aData);
}
}
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/super/fullpagebar_view.php
Expand Up @@ -33,7 +33,7 @@

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

0 comments on commit 021b9c6

Please sign in to comment.