Index: lams_central/web/qb/authoring/addmatchingpairs.jsp =================================================================== diff -u -re423418cca5e77a3b54cb3be496b67abe01c4183 -r80e8b14fbf1e51ddd5f16b6af99fcf5757909814 --- lams_central/web/qb/authoring/addmatchingpairs.jsp (.../addmatchingpairs.jsp) (revision e423418cca5e77a3b54cb3be496b67abe01c4183) +++ lams_central/web/qb/authoring/addmatchingpairs.jsp (.../addmatchingpairs.jsp) (revision 80e8b14fbf1e51ddd5f16b6af99fcf5757909814) @@ -44,17 +44,18 @@ $("#feedback").val(CKEDITOR.instances.feedback.getData()); $("#new-collection-uid").val($("#collection-uid-select option:selected").val()); - var options = { - target: parent.jQuery('#itemArea'), - success: afterRatingSubmit // post-submit callback - }; + var isVersionBeingChecked = isVersionCheck(), + options = { + target: isVersionBeingChecked ? null : parent.jQuery('#itemArea'), + dataType : isVersionBeingChecked? 'json' : null, + success: isVersionBeingChecked? afterVersionCheck : afterRatingSubmit // post-submit callback + }; $('#assessmentQuestionForm').ajaxSubmit(options); }, invalidHandler: formValidationInvalidHandler, errorElement: "em", errorPlacement: formValidationErrorPlacement, - success: formValidationSuccess, highlight: formValidationHighlight, unhighlight: formValidationUnhighlight });