Skip to content

Commit

Permalink
Fixed issue #09660: Outdated title and broken title in Array question…
Browse files Browse the repository at this point in the history
… type

Dev: use javascript to fix #08554: Hover over answers no longer showing value
Dev: add title for all array type, maybe remove for Array by column and Array dual scale (dropdown)
Dev: Using existing label ensure is updated with EM
Dev: this don't break screen reader showing 2 times the same text
  • Loading branch information
Shnoulle committed Jun 4, 2015
1 parent cdb60e7 commit 4ee5f2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -4675,8 +4675,7 @@ function do_array($ia)
{
$answer .= "\t\t\t<td class=\"answer_cell_00$ld answer-item radio-item\">\n"
. "<label class=\"hide read\" for=\"answer$myfname-$ld\">{$labelans[$thiskey]}</label>\n"
. "\t<input class=\"radio\" type=\"radio\" name=\"$myfname\" value=\"$ld\" id=\"answer$myfname-$ld\" title=\""
. HTMLEscape(strip_tags($labelans[$thiskey])).'"';
. "\t<input class=\"radio\" type=\"radio\" name=\"$myfname\" value=\"$ld\" id=\"answer$myfname-$ld\"";
if (isset($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname]) && $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname] == $ld)
{
$answer .= CHECKED;
Expand Down
7 changes: 7 additions & 0 deletions scripts/survey_runtime.js
Expand Up @@ -19,6 +19,7 @@ tableCellAdapters();
activateLanguageChanger();
$(document).ready(function()
{
doToolTipTable();
navbuttonsJqueryUi();
showStartPopups();
addClassEmpty();
Expand Down Expand Up @@ -581,3 +582,9 @@ function maxlengthtextarea(){
}
});
}
function doToolTipTable()
{
$(document).on("mouseover"," td.answer-item",function(){
$( this).attr('title',$(this).find("label").text());
});
}

0 comments on commit 4ee5f2e

Please sign in to comment.