Skip to content

Commit

Permalink
Merge pull request #2446 from QuizandSurveyMaster/dev-zubair
Browse files Browse the repository at this point in the history
Dev zubair
  • Loading branch information
zubairraeen authored Jan 12, 2024
2 parents a964212 + 9a836fd commit dee2bca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/qsm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ if(current_id == 'qsm_variable_text'){ jQuery(".current_variable")[0].click();}
value: 'cancel',
nonce: wpApiSettings.nonce
},
success: function (status) {
success: function (response) {
if (response.success) {
$('.multiple-category-notice').hide();
}
Expand Down
6 changes: 3 additions & 3 deletions js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,9 @@ function qmnInitPagination(quiz_id) {
}

jQuery(document).on('qsm_next_button_click_after qsm_previous_button_click_after', function(event, quiz_id) {
let video_sections = jQuery(`.qsm-quiz-container-${quiz_id}.qmn_quiz_container`).find('video');
let iframeVideos = jQuery(`.qsm-quiz-container-${quiz_id}.qmn_quiz_container`).find('iframe');
let audio_sections = jQuery(`.qsm-quiz-container-${quiz_id}.qmn_quiz_container`).find('audio');
let video_sections = jQuery('.qsm-quiz-container-' + quiz_id + '.qmn_quiz_container').find('video');
let iframeVideos = jQuery('.qsm-quiz-container-' + quiz_id + '.qmn_quiz_container .qsm-page, .qsm-quiz-container-' + quiz_id + '.qmn_quiz_container .qsm-auto-page-row').find('iframe');
let audio_sections = jQuery('.qsm-quiz-container-' + quiz_id + '.qmn_quiz_container').find('audio');
iframeVideos.each(function() {
let src = this.src;
jQuery(this).attr('src', src);
Expand Down
1 change: 0 additions & 1 deletion php/admin/admin-results-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ function qsm_results_overview_tab_content() {
$user_id = get_current_user_id();
if ( isset( $_POST["results-screen_option_nonce"] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST["results-screen_option_nonce"] ) ), 'results_screen_option' ) ) {
$results_screen_option['page_url'] = isset( $_POST['page_url'] ) ? sanitize_text_field( wp_unslash( $_POST['page_url'] ) ) : "0";
$results_screen_option['view_result_page'] = isset( $_POST['view_result_page'] ) ? sanitize_text_field( wp_unslash( $_POST['view_result_page'] ) ) : "0";
$results_screen_option['page_name'] = isset( $_POST['page_name'] ) ? sanitize_text_field( wp_unslash( $_POST['page_name'] ) ) : "0";
$results_screen_option['view_result_page'] = isset( $_POST['view_result_page'] ) ? sanitize_text_field( wp_unslash( $_POST['view_result_page'] ) ) : "0";
$results_screen_option['business'] = isset( $_POST['business'] ) ? sanitize_text_field( wp_unslash( $_POST['business'] ) ) : "0";
Expand Down

0 comments on commit dee2bca

Please sign in to comment.