summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 43b7525c..ac171522 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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');