Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev zubair #2526

Merged
merged 4 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading