fixed disabled category grey out, added plural move topics string
v1.18.x
barisusakli 11 years ago
parent 436a97129f
commit 3c96857123

@ -82,6 +82,7 @@
"loading_more_posts": "Loading More Posts", "loading_more_posts": "Loading More Posts",
"move_topic": "Move Topic", "move_topic": "Move Topic",
"move_topics": "Move Topics",
"move_post": "Move Post", "move_post": "Move Post",
"post_moved": "Post moved!", "post_moved": "Post moved!",
"fork_topic": "Fork Topic", "fork_topic": "Fork Topic",

@ -19,6 +19,13 @@ define(function() {
modal.on('shown.bs.modal', onMoveModalShown); modal.on('shown.bs.modal', onMoveModalShown);
$('#move-confirm').hide(); $('#move-confirm').hide();
if (tids.length > 1) {
translator.translate('[[topic:move_topics]]', function(translated) {
modal.find('.modal-header h3').text(translated);
});
}
modal.modal('show'); modal.modal('show');
}; };
@ -93,9 +100,10 @@ define(function() {
if(parseInt(info.cid, 10) === parseInt(Move.currentCid, 10)) { if(parseInt(info.cid, 10) === parseInt(Move.currentCid, 10)) {
continue; continue;
} }
$('<li />') $('<li />')
.css({background: info.bgColor, color: info.color || '#fff'}) .css({background: info.bgColor, color: info.color || '#fff'})
.addClass(info.disabled === '1' ? ' disabled' : '') .toggleClass('disabled', info.disabled)
.attr('data-cid', info.cid) .attr('data-cid', info.cid)
.html('<i class="fa ' + info.icon + '"></i> ' + info.name) .html('<i class="fa ' + info.icon + '"></i> ' + info.name)
.appendTo(categoriesEl); .appendTo(categoriesEl);

Loading…
Cancel
Save