Fixed messages

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
Alexey Terentyev 2018-06-17 15:13:14 +03:00
parent 630ca5901c
commit c1364ea717
No known key found for this signature in database
GPG Key ID: 60D6C550AEEBB467
2 changed files with 4 additions and 3 deletions

View File

@ -2338,7 +2338,8 @@ function initTopicbar() {
viewDiv.show();
}).fail(function(xhr) {
alert(xhr.responseJSON.message)
});
})
});
$('#topic_edit .dropdown').dropdown({
allowAdditions: true,

View File

@ -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
}