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:
Cameron Sutter 2015-09-17 15:17:21 -06:00
parent b57ce34ef6
commit 8ed3c8bf64
1 changed files with 6 additions and 4 deletions

View File

@ -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) {