fix(forums): fixed topic replies content issues when edit

This commit is contained in:
OldHawk
2017-10-13 17:52:05 +08:00
parent 377cf9d8f5
commit c5b65833c8
3 changed files with 4 additions and 2 deletions

View File

@@ -181,6 +181,7 @@
t.content = e.getContent();
t.$update(function (res) {
vm.topic = res;
vm.figureOutItemsToDisplay();
NotifycationService.showSuccessNotify('FORUMS.TOPIC_EDIT_SUCCESSFULLY');
}, function (res) {
NotifycationService.showErrorNotify(res.data.message, 'FORUMS.TOPIC_EDIT_FAILED');
@@ -242,6 +243,7 @@
rep.$update(function (res) {
vm.topic = res;
vm.figureOutItemsToDisplay();
NotifycationService.showSuccessNotify('FORUMS.REPLY_EDIT_SUCCESSFULLY');
}, function (res) {
NotifycationService.showErrorNotify(res.data.message, 'FORUMS.FORUMS');