use "undo" icon instead of comment for restoring posts

v1.18.x
psychobunny 11 years ago
parent b12ca5ab9f
commit 3198275209

@ -128,7 +128,7 @@ define('forum/categoryTools', ['forum/topic/move', 'topicSelect'], function(move
var isAnyPinned = isAny(isTopicPinned, tids); var isAnyPinned = isAny(isTopicPinned, tids);
var isAnyLocked = isAny(isTopicLocked, tids); var isAnyLocked = isAny(isTopicLocked, tids);
translator.translate('<i class="fa fa-fw ' + (isAnyDeleted ? 'fa-comment' : 'fa-trash-o') + '"></i> [[topic:thread_tools.' + (isAnyDeleted ? 'restore' : 'delete') + ']]', function(translated) { translator.translate('<i class="fa fa-fw ' + (isAnyDeleted ? 'fa-history' : 'fa-trash-o') + '"></i> [[topic:thread_tools.' + (isAnyDeleted ? 'restore' : 'delete') + ']]', function(translated) {
$('.delete_thread span').html(translated); $('.delete_thread span').html(translated);
}); });

@ -24,7 +24,7 @@ define('forum/topic/postTools', ['composer', 'share', 'navigator'], function(com
postEl.find('.purge').toggleClass('none', !isDeleted); postEl.find('.purge').toggleClass('none', !isDeleted);
translator.translate(isDeleted ? ' [[topic:restore]]' : ' [[topic:delete]]', function(translated) { translator.translate(isDeleted ? ' [[topic:restore]]' : ' [[topic:delete]]', function(translated) {
postEl.find('.delete').find('i').toggleClass('fa-trash-o', !isDeleted).toggleClass('fa-comment', isDeleted); postEl.find('.delete').find('i').toggleClass('fa-trash-o', !isDeleted).toggleClass('fa-history', isDeleted);
postEl.find('.delete').find('span').html(translated); postEl.find('.delete').find('span').html(translated);
}); });
}; };

@ -116,7 +116,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
return; return;
} }
translator.translate('<i class="fa fa-fw ' + (data.isDelete ? 'fa-comment' : 'fa-trash-o') + '"></i> [[topic:thread_tools.' + (data.isDelete ? 'restore' : 'delete') + ']]', function(translated) { translator.translate('<i class="fa fa-fw ' + (data.isDelete ? 'fa-history' : 'fa-trash-o') + '"></i> [[topic:thread_tools.' + (data.isDelete ? 'restore' : 'delete') + ']]', function(translated) {
$('.delete_thread span').html(translated); $('.delete_thread span').html(translated);
}); });

Loading…
Cancel
Save