mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 06:46:02 +02:00
closes #1461
fixed disabled category grey out, added plural move topics string
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
|
||||
"loading_more_posts": "Loading More Posts",
|
||||
"move_topic": "Move Topic",
|
||||
"move_topics": "Move Topics",
|
||||
"move_post": "Move Post",
|
||||
"post_moved": "Post moved!",
|
||||
"fork_topic": "Fork Topic",
|
||||
|
||||
@@ -19,6 +19,13 @@ define(function() {
|
||||
|
||||
modal.on('shown.bs.modal', onMoveModalShown);
|
||||
$('#move-confirm').hide();
|
||||
|
||||
if (tids.length > 1) {
|
||||
translator.translate('[[topic:move_topics]]', function(translated) {
|
||||
modal.find('.modal-header h3').text(translated);
|
||||
});
|
||||
}
|
||||
|
||||
modal.modal('show');
|
||||
};
|
||||
|
||||
@@ -93,9 +100,10 @@ define(function() {
|
||||
if(parseInt(info.cid, 10) === parseInt(Move.currentCid, 10)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$('<li />')
|
||||
.css({background: info.bgColor, color: info.color || '#fff'})
|
||||
.addClass(info.disabled === '1' ? ' disabled' : '')
|
||||
.toggleClass('disabled', info.disabled)
|
||||
.attr('data-cid', info.cid)
|
||||
.html('<i class="fa ' + info.icon + '"></i> ' + info.name)
|
||||
.appendTo(categoriesEl);
|
||||
|
||||
Reference in New Issue
Block a user