Skip to content

Commit

Permalink
fixed long menu js
Browse files Browse the repository at this point in the history
  • Loading branch information
gvollbach committed Aug 9, 2016
1 parent a6c0201 commit 7a37834
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,13 @@ var longMenuQuestion = (function () {
{
var t0 = pro.benchmarkCallsDummyNotForUsage('protect.appendSaveModalButtonEventAnswers');
$.each($('.answerlist') , function() {
answers.push($(this).attr('value'));
answers.push($(this).val());
});
pro.benchmarkCallsDummyNotForUsage('protect.appendSaveModalButtonEventAnswers', t0);
}
else
{
answers = $('.input-large').attr('value').split('\n');
answers = $('.input-large').val().split('\n');
}
pub.answers[gap_id] = answers;
pro.checkAnswersArray(gap_id);
Expand Down Expand Up @@ -571,8 +571,8 @@ var longMenuQuestion = (function () {

pro.syncWithHiddenTextField = function()
{
$('#hidden_text_files').attr('value', JSON.stringify(pub.answers));
$('#hidden_correct_answers').attr('value', JSON.stringify(pub.questionParts.list));
$('#hidden_text_files').val(JSON.stringify(pub.answers));
$('#hidden_correct_answers').val(JSON.stringify(pub.questionParts.list));
};

pro.sliceInNewQuestionPart = function (gap_id)
Expand Down

0 comments on commit 7a37834

Please sign in to comment.