Fixed messages
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
parent
630ca5901c
commit
c1364ea717
|
|
@ -2338,7 +2338,8 @@ function initTopicbar() {
|
|||
viewDiv.show();
|
||||
}).fail(function(xhr) {
|
||||
alert(xhr.responseJSON.message)
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
$('#topic_edit .dropdown').dropdown({
|
||||
allowAdditions: true,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user