mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
use "undo" icon instead of comment for restoring posts
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user