Skip to content
Snippets Groups Projects
Commit 967634ec authored by Sven Kästle's avatar Sven Kästle
Browse files

fix: Replace corrupt annotation click path

parent 3c605a3a
No related branches found
No related tags found
No related merge requests found
...@@ -68,14 +68,14 @@ $(document).ready(function() { ...@@ -68,14 +68,14 @@ $(document).ready(function() {
* continue button * continue button
*/ */
$('#btnContinue').click(function () { $('#btnContinue').click(function () {
location.href="give-feedback.jsp?token=" + getUserTokenFromUrl(); location.href="../feedback/give-feedback.jsp?token=" + getUserTokenFromUrl();
}); });
/** /**
* back button * back button
*/ */
$('#btnBack').click(function () { $('#btnBack').click(function () {
location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId");
}); });
/** /**
......
...@@ -285,7 +285,7 @@ function saveButtonHandler() { ...@@ -285,7 +285,7 @@ function saveButtonHandler() {
$.when.apply($, promises).then(function () { $.when.apply($, promises).then(function () {
// redirect user to project page after saving // redirect user to project page after saving
location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId");
}); });
// redirect user to project page after saving // redirect user to project page after saving
......
...@@ -37,15 +37,15 @@ $(document).ready(function() { ...@@ -37,15 +37,15 @@ $(document).ready(function() {
$('#upload-textarea').val(""); $('#upload-textarea').val("");
// jump to previous page // jump to previous page
window.history.back(); //window.history.back();
//location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getProjectIdFromUrl(); location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId");
} }
} }
// nothing to check // nothing to check
else { else {
// jump to previous page // jump to previous page
window.history.back(); //window.history.back();
//location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getProjectIdFromUrl(); location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId");
} }
}); });
......
...@@ -11,7 +11,7 @@ $(document).ready(function(){ ...@@ -11,7 +11,7 @@ $(document).ready(function(){
$('.annotationview').click(function () { $('.annotationview').click(function () {
let fullSubmissionId = $(this).closest("li").data("fullSubmissionId"); let fullSubmissionId = $(this).closest("li").data("fullSubmissionId");
let category = $(this).closest("li").data("category"); let category = $(this).closest("li").data("category");
location.href="annotation-document.jsp?token=" + getUserTokenFromUrl() + location.href="/annotation/annotation-document.jsp?token=" + getUserTokenFromUrl() +
"&projectId=" + getQueryVariable("projectId") + "&projectId=" + getQueryVariable("projectId") +
"&fullSubmissionId=" + fullSubmissionId + "&fullSubmissionId=" + fullSubmissionId +
"&category=" + category; "&category=" + category;
...@@ -41,7 +41,7 @@ $(document).ready(function(){ ...@@ -41,7 +41,7 @@ $(document).ready(function(){
}); });
$('#btnUnstructuredUpload').click(function () { $('#btnUnstructuredUpload').click(function () {
location.href="unstructured-upload.jsp?token="+getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); location.href="/annotation/upload-unstructured-annotation.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId");
}) })
$('.viewprojectstudent').click(function () { $('.viewprojectstudent').click(function () {
......
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