diff --git a/css/common.css b/css/common.css index 22b6680c7..0cbe075d3 100644 --- a/css/common.css +++ b/css/common.css @@ -294,12 +294,19 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover { color: red; display: block; } - +.quiz_section .mlw-file-upload-error-msg.mlw-file-upload-success-msg { + color: green; + display: block; +} .quiz_section .remove-uploaded-file { color: red; - border: 1px solid red; - width: 31px; - padding: 5px 5px 0px 5px; + display: inline-block; + cursor: pointer; + margin-top: 5px; +} +.quiz_section .loading-uploaded-file { + width: 20px; + margin-bottom: -5px; } /** diff --git a/js/qsm-admin.js b/js/qsm-admin.js index 8a46d48e8..57dc5209c 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -2246,7 +2246,8 @@ var import_button; question_id: answer['question_id'], answerType: answer['answerType'], form_type: qsmQuestionSettings.form_type, - quiz_system: qsmQuestionSettings.quiz_system + quiz_system: qsmQuestionSettings.quiz_system, + question_type: questionType, }; if (answer['answerType'] == 'image') { ansTemp = { @@ -2258,7 +2259,8 @@ var import_button; question_id: answer['question_id'], answerType: answer['answerType'], form_type: qsmQuestionSettings.form_type, - quiz_system: qsmQuestionSettings.quiz_system + quiz_system: qsmQuestionSettings.quiz_system, + question_type: questionType }; } jQuery(document).trigger('qsm_new_answer_template', [ansTemp, answer, questionType]); diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index 2781a93c7..c916ee201 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -1693,6 +1693,7 @@ jQuery(function () { $this.parent('.quiz_section').find('.mlw_file_upload_hidden_path').val(obj.file_path); $this.parent('.quiz_section').find('.mlw_file_upload_media_id').val(obj.media_id); $this.parent('.quiz_section').find('.mlw-file-upload-error-msg').hide(); + $this.parent('.quiz_section').find('.mlw-file-upload-error-msg').addClass('mlw-file-upload-success-msg').text(obj.message); $this.parent('.quiz_section').find('.mlw-file-upload-error-msg').show(); } else { $this.parent('.quiz_section').find('.mlw-file-upload-error-msg').removeClass('mlw-file-upload-success-msg'); diff --git a/mlw_quizmaster2.php b/mlw_quizmaster2.php index f60ae2dd3..8b8dfae21 100644 --- a/mlw_quizmaster2.php +++ b/mlw_quizmaster2.php @@ -2,7 +2,7 @@ /** * Plugin Name: Quiz And Survey Master * Description: Easily and quickly add quizzes and surveys to your website. - * Version: 8.1.15 + * Version: 8.1.16 * Author: ExpressTech * Author URI: https://quizandsurveymaster.com/ * Plugin URI: https://expresstech.io/ @@ -43,7 +43,7 @@ class MLWQuizMasterNext { * @var string * @since 4.0.0 */ - public $version = '8.1.15'; + public $version = '8.1.16'; /** * QSM Alert Manager Object diff --git a/php/admin/options-page-questions-tab.php b/php/admin/options-page-questions-tab.php index d25500c19..b46e4c3ae 100644 --- a/php/admin/options-page-questions-tab.php +++ b/php/admin/options-page-questions-tab.php @@ -124,14 +124,6 @@ function qsm_options_questions_tab_content() { pluginHelper->get_section_setting( 'quiz_options', 'randomness_order' ); - if ( 0 != $randomness ) { - ?> -