Skip to content

Commit

Permalink
Fixed issue #11261: Printable survey javascript/jquery error
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 25, 2016
1 parent b01b217 commit d05362c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions application/helpers/common_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7132,10 +7132,7 @@ function doHeader()
function getPrintableHeader()
{
global $rooturl,$homeurl;
$headelements = '
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="'.Yii::app()->getConfig('adminscripts').'printablesurvey.js"></script>
';
$headelements = App()->getController()->renderPartial('/survey/system/print_survey/header', array(), true, true);
return $headelements;
}

Expand Down
3 changes: 3 additions & 0 deletions application/views/survey/system/print_survey/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="<?php echo Yii::app()->getConfig('adminscripts');?>printablesurvey.js"></script>

0 comments on commit d05362c

Please sign in to comment.