mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Update to use proper way to render view and fix upload image error should response with code
This commit is contained in:
parent
4d7c3d2120
commit
87f4d05e8e
3 changed files with 28 additions and 81 deletions
|
@ -1512,7 +1512,7 @@ var revisionTime = null;
|
|||
ui.modal.revision.on('show.bs.modal', function (e) {
|
||||
$.get(noteurl + '/revision')
|
||||
.done(function(data) {
|
||||
parseRevisions(JSON.parse(data).revision);
|
||||
parseRevisions(data.revision);
|
||||
initRevisionViewer();
|
||||
})
|
||||
.fail(function(err) {
|
||||
|
@ -1564,7 +1564,7 @@ function selectRevision(time) {
|
|||
if (time == revisionTime) return;
|
||||
$.get(noteurl + '/revision/' + time)
|
||||
.done(function(data) {
|
||||
revision = JSON.parse(data);
|
||||
revision = data;
|
||||
revisionTime = time;
|
||||
var lastScrollInfo = revisionViewer.getScrollInfo();
|
||||
revisionList.children().removeClass('active');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue