summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-08-19 11:31:23 +0800
committerWu Cheng-Han2016-08-19 11:31:23 +0800
commit87f4d05e8e8f36ac276cd85601cabc1fbb7efc2c (patch)
tree3341cdb5bc1950b1012f6945315cd40d304bfee1 /public
parent4d7c3d21206ef61de2323f2138dd99cf5dbf5d31 (diff)
Update to use proper way to render view and fix upload image error should response with code
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');