Skip to content

Commit

Permalink
Merge pull request #2526 from QuizandSurveyMaster/dev-zubair
Browse files Browse the repository at this point in the history
Dev zubair
  • Loading branch information
zubairraeen authored Apr 23, 2024
2 parents 833a8d8 + 4951eab commit dd99d52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions js/qsm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2537,9 +2537,9 @@ var import_button;
}
if (qsmQuestionSettings.form_type == 0) {
if (questionType == 14) {
$('.correct-answer').hide();
$('.answer-correct-div').hide();
} else {
$('.correct-answer').show();
$('.answer-correct-div').show();
}
}

Expand Down Expand Up @@ -3409,9 +3409,9 @@ var import_button;
}
}
if (14 == question_val) {
$('.correct-answer').hide();
$('.answer-correct-div').hide();
} else {
$('.correct-answer').show();
$('.answer-correct-div').show();
}
if (15 == question_val || 16 == question_val || 17 == question_val) {
MicroModal.show('modal-advanced-question-type');
Expand Down
4 changes: 2 additions & 2 deletions js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -1781,8 +1781,8 @@ function qsm_show_inline_result(quizID, question_id, value, $this, answer_type,
if ( 0 < value.length && data.success == 'correct') {
$this.append('<div style="color: green" class="quick-question-res-p qsm-correct-answer-info">' + qmn_quiz_data[quizID].quick_result_correct_answer_text + '</div>')
$this.append('<div class="qsm-inline-correct-info">' + qsm_check_shortcode(data.message) + '</div>');
} else if ( 0 < value.length && data.success == 'incorrect') {
$this.find('.qmn_radio_answers').children().eq(parseInt(data.correct_index)).addClass('data-correct-answer');
} else if (0 < value.length && data.success == 'incorrect') {
$this.find('.qmn_radio_answers input[value="' + data.correct_index + '"]').parent().addClass('data-correct-answer');
$this.append('<div style="color: red" class="quick-question-res-p qsm-incorrect-answer-info">' + qmn_quiz_data[quizID].quick_result_wrong_answer_text + '</div>')
$this.append('<div class="qsm-inline-correct-info">' + qsm_check_shortcode(data.message) + '</div>');
}
Expand Down
2 changes: 1 addition & 1 deletion php/admin/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ function qsm_get_input_label_selected( $param ) {
'<option value="%1$s" %2$s >%3$s</option>',
esc_attr( $key ),
esc_attr( $is_selected ),
esc_attr( $val ),
esc_attr( $val )
);
}
$allowed_tags = array(
Expand Down

0 comments on commit dd99d52

Please sign in to comment.