no 'correct answer' for surveys
fixes CNVS-22945 test plan: - while editing surveys, none of the answer labels should say 'Correct Answer' Change-Id: I50a958a87dc5e298c2e6384b4d7d2127daf2b7b7 Reviewed-on: https://gerrit.instructure.com/63540 Tested-by: Jenkins Reviewed-by: Brian Finney <bfinney@instructure.com> QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com> Product-Review: Jason Sparks <jsparks@instructure.com>
This commit is contained in:
parent
b57ce34ef6
commit
8ed3c8bf64
|
@ -131,10 +131,12 @@ define([
|
|||
possibleAnswerLabel = I18n.t('labels.possible_answer', "Possible Answer");
|
||||
|
||||
function togglePossibleCorrectAnswerLabel($answers) {
|
||||
$answers.find('.select_answer label').text(possibleAnswerLabel);
|
||||
$answers.find('.select_answer input[name=answer_text]').attr("aria-label", possibleAnswerLabel);
|
||||
$answers.filter('.correct_answer').find(".select_answer label").text(correctAnswerLabel);
|
||||
$answers.filter('.correct_answer').find(".select_answer input[name=answer_text]").attr("aria-label", correctAnswerLabel);
|
||||
if(!$("#questions").hasClass('survey_quiz')){
|
||||
$answers.find('.select_answer label').text(possibleAnswerLabel);
|
||||
$answers.find('.select_answer input[name=answer_text]').attr("aria-label", possibleAnswerLabel);
|
||||
$answers.filter('.correct_answer').find(".select_answer label").text(correctAnswerLabel);
|
||||
$answers.filter('.correct_answer').find(".select_answer input[name=answer_text]").attr("aria-label", correctAnswerLabel);
|
||||
}
|
||||
}
|
||||
|
||||
function toggleSelectAnswerAltText($answers,type) {
|
||||
|
|
Loading…
Reference in New Issue