diff --git a/js/qsm-admin.js b/js/qsm-admin.js index c0969ff2b..a9a239a3a 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -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(); } diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index 2a595d8c3..2efce226c 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -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); diff --git a/php/admin/admin-results-page.php b/php/admin/admin-results-page.php index 4d9fdf8a4..fde351b67 100644 --- a/php/admin/admin-results-page.php +++ b/php/admin/admin-results-page.php @@ -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";