From c1364ea7179442bbcac2fab4ac9223a7ae71ad06 Mon Sep 17 00:00:00 2001 From: Alexey Terentyev Date: Sun, 17 Jun 2018 15:13:14 +0300 Subject: [PATCH] Fixed messages Signed-off-by: Alexey Terentyev --- public/js/index.js | 3 ++- routers/repo/topic.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 6c760e367..823dd8766 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2338,7 +2338,8 @@ function initTopicbar() { viewDiv.show(); }).fail(function(xhr) { alert(xhr.responseJSON.message) - }); + }) + }); $('#topic_edit .dropdown').dropdown({ allowAdditions: true, diff --git a/routers/repo/topic.go b/routers/repo/topic.go index 85eaf674e..82df2a49d 100644 --- a/routers/repo/topic.go +++ b/routers/repo/topic.go @@ -46,7 +46,7 @@ func TopicsPost(ctx *context.Context) { log.Error(2, "Incorrect number of topics(max 25)") ctx.JSON(422, map[string]interface{}{ "invalidTopics": topics[:0], - "message": ctx.Tr("repo.topic.count_error"), + "message": ctx.Tr("repo.topic.count_prompt"), }) return } @@ -55,7 +55,7 @@ func TopicsPost(ctx *context.Context) { log.Error(2, "Invalid topics: %v", invalidTopics) ctx.JSON(422, map[string]interface{}{ "invalidTopics": invalidTopics, - "message": ctx.Tr("repo.topic.pattern_error"), + "message": ctx.Tr("repo.topic.format_prompt"), }) return }