Skip to content
Snippets Groups Projects
Commit 87c16682 authored by Martin Staehr's avatar Martin Staehr
Browse files

#77 fix annotation and seefeedback

parent 98763ed3
No related branches found
No related tags found
No related merge requests found
...@@ -87,8 +87,10 @@ function getContributionFeedback(fullSubmissionId, fullSubmissionPartCategory, g ...@@ -87,8 +87,10 @@ function getContributionFeedback(fullSubmissionId, fullSubmissionPartCategory, g
type: "GET", type: "GET",
dataType: "json", dataType: "json",
success: function (response) { success: function (response) {
response.text = JSON.parse(response.text); if (response) {
responseHandler(response); response.text = JSON.parse(response.text);
responseHandler(response);
}
} }
}); });
} }
......
...@@ -217,7 +217,11 @@ function fitObjectInTmpl(object) { ...@@ -217,7 +217,11 @@ function fitObjectInTmpl(object) {
break; break;
case "ANNOTATE_DOSSIER": case "ANNOTATE_DOSSIER":
result.solveTaskWith = "Annotiere das Dossier"; result.solveTaskWith = "Annotiere das Dossier";
result.solveTaskWithLink = "redirect(\'../annotation/create-unstructured-annotation.jsp?projectName=" + object.projectName + "&submissionId=" + object.taskData.fullSubmissionId + "\')"; result.solveTaskWithLink = "redirect(\'../annotation/create-unstructured-annotation.jsp?" + $.param({
projectName: object.projectName,
submissionId: object.taskData.fullSubmissionId,
contributionCategory: "Dossier"
}) + "\')";
break; break;
case "FINALIZE_DOSSIER": case "FINALIZE_DOSSIER":
result.solveTaskWith = "Finalisiere das Dossier"; result.solveTaskWith = "Finalisiere das Dossier";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment