diff --git a/css/admin-dashboard-rtl.css b/css/admin-dashboard-rtl.css index 212a4263e..c415610ac 100644 --- a/css/admin-dashboard-rtl.css +++ b/css/admin-dashboard-rtl.css @@ -776,6 +776,7 @@ h2.hndle.ui-sortable-handle { #model-wizard #qsm_span .quiz_featured_image { width: 100%; margin-bottom: 10px; + height: 30px; } #model-wizard .empty-market-place { diff --git a/css/admin-dashboard.css b/css/admin-dashboard.css index 24565c33c..778431760 100644 --- a/css/admin-dashboard.css +++ b/css/admin-dashboard.css @@ -775,6 +775,7 @@ h2.hndle.ui-sortable-handle { #model-wizard #qsm_span .quiz_featured_image { width: 100%; margin-bottom: 10px; + height: 30px; } #model-wizard .empty-market-place { diff --git a/js/qsm-admin.js b/js/qsm-admin.js index 29a895459..72a4b1903 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -396,7 +396,13 @@ var QSMAdmin; if ( !jQuery('.category_selection_random').length ) { jQuery('#limit_category_checkbox, #question_per_category').hide(); } - //Hide/show tr based on selection + jQuery(document).on('change', '#qsm-quiz-options-form_type input', function () { + if (0 == jQuery(this).val()) { + jQuery('#qsm-quiz-options-system').show(); + } else { + jQuery('#qsm-quiz-options-system').hide(); + } + }); $('.qsm_tab_content .qsm-opt-tr select').each(function () { var name = $(this).attr('name'); var value = $(this).val(); diff --git a/php/admin/functions.php b/php/admin/functions.php index d61b8cb2e..3dac754a8 100644 --- a/php/admin/functions.php +++ b/php/admin/functions.php @@ -581,12 +581,12 @@ function qsm_generate_question_option( $key, $single_option ) { /** * @since 8.2.3 - * Settings to create Quiz + * Settings to create Quiz */ if ( ! function_exists( 'qsm_settings_to_create_quiz' ) ) { function qsm_settings_to_create_quiz( $require_field = false ) { global $globalQuizsetting, $mlwQuizMasterNext, $themes_data; - + $quiz_setting_option = array( 'form_type' => array( 'option_name' => __( 'Form Type', 'quiz-master-next' ), @@ -782,7 +782,7 @@ function qsm_settings_to_create_quiz( $require_field = false ) { } if ( true != $require_field ) { - echo '