Index: lams_tool_lamc/web/authoring/editQuestionBox.jsp
===================================================================
diff -u -re1e8890bd7a972827bd9449eeb7f76a9b42c5913 -rc1bde51a17e35ed781d2bb7f4123b2012f30f5a3
--- lams_tool_lamc/web/authoring/editQuestionBox.jsp (.../editQuestionBox.jsp) (revision e1e8890bd7a972827bd9449eeb7f76a9b42c5913)
+++ lams_tool_lamc/web/authoring/editQuestionBox.jsp (.../editQuestionBox.jsp) (revision c1bde51a17e35ed781d2bb7f4123b2012f30f5a3)
@@ -20,21 +20,16 @@
});
$.ajaxSetup({ cache: true });
- $('#newQuestionForm').ajaxSubmit({
+ $('#mcAuthoringForm').ajaxSubmit({
+ url: "authoring/"+actionMethod+".do",
data: {
sessionMapId: '${sessionMapId}',
- dispatch: actionMethod
},
cache: true,
target: $('#candidateArea')
});
}
-
- function submitForm(methodName) {
- var f = document.getElementById('mcAuthoringForm');
- f.action = methodName + ".do";
- f.submit();
-
+
function saveQuestion() {
$("#newQuestion").val(CKEDITOR.instances.newQuestion.getData());
$("textarea[name^=ca],textarea[name=feedback]").each(function() {
@@ -44,10 +39,10 @@
});
if (validateSingleCorrectAnswer()) {
- $('#newQuestionForm').ajaxSubmit({
+ $('#mcAuthoringForm').ajaxSubmit({
+ url: "",
data: {
sessionMapId: '${sessionMapId}',
- dispatch: 'saveQuestion'
},
target: parent.jQuery('#resourceListArea'),
success: function() {
@@ -66,7 +61,7 @@
function removeCandidate(candidateIndexValue) {
if (validateMinumumCandidateCount()) {
document.forms.McAuthoringForm.candidateIndex.value=candidateIndexValue;
- submitForm("removeCandidate");
+ submitMethod("removeCandidate");
}
}
@@ -151,11 +146,11 @@
-
+
-
+