From c5b65833c8e029fa51f391fc097b15281a87b733 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Fri, 13 Oct 2017 17:52:05 +0800 Subject: [PATCH] fix(forums): fixed topic replies content issues when edit --- modules/core/client/app/trans-string-en.js | 2 +- modules/core/client/app/trans-string-zh.js | 2 +- .../forums/client/controllers/forums-topic.client.controller.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 2550c9e3..12b5d27a 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -860,7 +860,7 @@ TOPIC_DELETE: 'delete topic', TOPIC_TOP_TOPIC: 'top status', TOPIC_GLOBAL_TOPIC: 'global status', - TOPIC_THUMBS_UP: 'thumbs up and donate score ({{number}})', + TOPIC_THUMBS_UP: 'thumbs up and donate score: {{number}}', HAS_ATTACH: 'has attach files' } }, diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index f0e6ff10..9e04a941 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -860,7 +860,7 @@ TOPIC_DELETE: '删除话题', TOPIC_TOP_TOPIC: '置顶话题', TOPIC_GLOBAL_TOPIC: '全局话题', - TOPIC_THUMBS_UP: '点赞并赠送积分 ({{number}})', + TOPIC_THUMBS_UP: '点赞并赠送积分: {{number}}', HAS_ATTACH: '包含附件' } }, diff --git a/modules/forums/client/controllers/forums-topic.client.controller.js b/modules/forums/client/controllers/forums-topic.client.controller.js index 9791243a..81656a66 100644 --- a/modules/forums/client/controllers/forums-topic.client.controller.js +++ b/modules/forums/client/controllers/forums-topic.client.controller.js @@ -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');