Skip to content
Snippets Groups Projects
Commit 15d834e5 authored by anisa kusumadewi's avatar anisa kusumadewi
Browse files

Fix bugs while editing

parent 002ce25e
No related branches found
No related tags found
No related merge requests found
...@@ -1819,7 +1819,7 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to ...@@ -1819,7 +1819,7 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
}); });
} else if(newContent === comment.content) { // No changes. } else if(newContent === comment.content) { // No changes.
editForm.style.display = "none"; editForm.style.display = "none";
text.innerHTML = comment.content; text.innerHTML = comment.displaycontent;
renderMathJax(text); renderMathJax(text);
} else { // Save changes. } else { // Save changes.
_2.default.getStoreAdapter().editComment(documentId, comment.uuid, newContent, editForm) _2.default.getStoreAdapter().editComment(documentId, comment.uuid, newContent, editForm)
...@@ -1841,7 +1841,7 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to ...@@ -1841,7 +1841,7 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
}); });
} else if (data.status === "error:maxfile") { } else if (data.status === "error:maxfile") {
notification.addNotification({ notification.addNotification({
message: M.util.get_string('error:maximalfilenumber','pdfannotator'), message: M.util.get_string('error:maximalfilenumber_edited','pdfannotator'),
type: "error" type: "error"
}); });
} else { } else {
...@@ -1864,12 +1864,12 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to ...@@ -1864,12 +1864,12 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
$('#comment_' + comment.uuid + ' #commentCancel').click(function(e){ $('#comment_' + comment.uuid + ' #commentCancel').click(function(e){
editForm.style.display = "none"; editForm.style.display = "none";
text.innerHTML = comment.content; text.innerHTML = comment.displaycontent;
renderMathJax(text); renderMathJax(text);
}); });
} else { } else {
editForm.style.display = "none"; editForm.style.display = "none";
text.innerHTML = comment.content; text.innerHTML = comment.displaycontent;
renderMathJax(text); renderMathJax(text);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment