Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #483 from otale/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
hellokaton authored Nov 5, 2018
2 parents 11e717f + ac35120 commit a05bd68
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions src/main/resources/static/admin/js/edit_article.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,24 +166,24 @@ var vm = new Vue({
});
$('#dropzone-container').hide();
}

tale.get({
url: '/admin/api/articles/content/' + cid,
success: function (data) {
if ($vm.article.fmtType === 'markdown') {
mditor.value = data;
} else {
htmlEditor.summernote("code", data);
}
}
});

},
error: function (error) {
console.log(error);
alert(error || '数据加载失败');
}
});

tale.get({
url: '/admin/api/articles/content/' + cid,
success: function (data) {
if ($vm.article.fmtType === 'markdown') {
mditor.value = data;
} else {
htmlEditor.summernote("code", data);
}
}
});

},
autoSave: function (callback) {
var $vm = this;
Expand Down
22 changes: 11 additions & 11 deletions src/main/resources/static/admin/js/edit_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,24 @@ var vm = new Vue({
off: '关闭'
}
});

tale.get({
url: '/admin/api/articles/content/' + cid,
success: function (data) {
if ($vm.article.fmtType === 'markdown') {
mditor.value = data;
} else {
htmlEditor.summernote("code", data);
}
}
});
},
error: function (error) {
console.log(error);
alert(error || '数据加载失败');
}
});

tale.get({
url: '/admin/api/articles/content/' + cid,
success: function (data) {
if ($vm.article.fmtType === 'markdown') {
mditor.value = data;
} else {
htmlEditor.summernote("code", data);
}
}
});

},
autoSave: function (callback) {
var $vm = this;
Expand Down

0 comments on commit a05bd68

Please sign in to comment.