Skip to content
Permalink
Browse files

Fixed issue #14667: No timer message displayed for boilerplate question

  • Loading branch information...
dominikvitt committed May 9, 2019
1 parent 70d03f7 commit 5e2d4b2230c61a897dd59f86763a9d9cd2a64daf
@@ -736,12 +736,10 @@ function do_boilerplate($ia)
$aQuestionAttributes = QuestionAttribute::model()->getQuestionAttributes($ia[0]);
$answer = '';
$inputnames = array();
if (trim($aQuestionAttributes['time_limit']) != '') {
$answer .= return_timer_script($aQuestionAttributes, $ia);
}
$sTimer = (trim($aQuestionAttributes['time_limit']) != '') ? return_timer_script($aQuestionAttributes, $ia) : ''; //Time Limit
$answer .= doRender('/survey/questions/answer/boilerplate/answer', array(
'sTimer'=>$sTimer,
'ia'=>$ia,
'name'=>$ia[1],
'basename'=>$ia[1], /* is this needed ? */
@@ -7,5 +7,7 @@
<!-- boilerplate -->
<!-- Did we need really something ? Why not return an empty string ? -->
<!-- answer -->
{{ sTimer }}

<input class="{{ coreClass }} boilerplate hidden" type="hidden" name="{{ name }}" id="answer{{ name }}" value="" />
<!-- end of answer -->
@@ -114,8 +114,6 @@ table.ls-answers input[type="checkbox"],table.ls-answers input[type="radio"]{mar
}
.dir-ltr .radio-item label.ls-label-xs-visibility > * ,.dir-ltr .checkbox-item label.ls-label-xs-visibility > * {left:-10000px;}
.dir-rtl .radio-item label.ls-label-xs-visibility > * ,.dir-rtl .checkbox-item label.ls-label-xs-visibility > * {left:-10000px;}
/* hide answers for text-display question */
.boilerplate .answer-container {display:none;}

/*
Max width before this PARTICULAR table gets nasty

0 comments on commit 5e2d4b2

Please sign in to comment.
You can’t perform that action at this time.