Skip to content

Commit

Permalink
Dev: replaced popup by hint to display full length question
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 18, 2015
1 parent 185bbcd commit bc5ad56
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 0 additions & 1 deletion application/controllers/admin/statistics.php
Expand Up @@ -666,7 +666,6 @@ protected function _renderWrappedTemplate($sAction = 'export', $aViewUrls = arra
App()->getClientScript()->registerScriptFile( $switch );


//

$aData['display']['menu_bars'] = false;
$aData['display']['menu_bars']['browse'] = gT('Browse responses'); // browse is independent of the above
Expand Down
8 changes: 8 additions & 0 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -3677,11 +3677,19 @@ public static function _showSpeaker($hinttext)
$shortstring = htmlspecialchars(mb_strcut(html_entity_decode($shortstring,ENT_QUOTES,'UTF-8'), 0, $maxchars, 'UTF-8'));

//output with hoover effect
/*
$reshtml= "<span style='cursor: pointer' title='".$htmlhinttext."' "
." onclick=\"alert('".gT("Question","js").": $jshinttext')\">"
." \"$shortstring...\" </span>"
."<span class='icon-assessments' style='cursor: pointer' ></span>"
." onclick=\"alert('".gT("Question","js").": $jshinttext')\" />";
*/

$sTextToShow = gT("Question","js").': '.$jshinttext;

$reshtml = '<span>'.$shortstring.'...</span>';
$reshtml .= '<span class="show_speaker icon-assessments" style="cursor: pointer" title="'.$sTextToShow.'" data-toggle="tooltip" data-placement="bottom" >';
$reshtml .= '</span>';
}
else
{
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- CHANGE HERE THE NUMBER OF COL-SM TO CHANGE THE NUMBER OF QUESTION BY LINE -->
<div class="col-sm-4">

<input type='checkbox'
id='filter<?php echo $myfield; ?>'
name='summary[]'
Expand All @@ -27,7 +27,10 @@
{ echo " checked='checked'"; }
?>
/>
<label for='filter<?php echo $myfield; ?>'><?php echo $oStatisticsHelper::_showSpeaker(flattenText($flt[5],true)); ?></label><br />
<label for='filter<?php echo $myfield; ?>'>
<?php echo $oStatisticsHelper::_showSpeaker(flattenText($flt[5],true)); ?>
</label>
<br />
<?php if ($flt[2] != "N" && $flt[2] != "|"):?>
<select name='<?php
if ($flt[2] == "M" ) { echo "M";};
Expand Down

0 comments on commit bc5ad56

Please sign in to comment.