changed none to hidden

v1.18.x
barisusakli 10 years ago
parent de98df842d
commit 043a73b4ae

@ -132,7 +132,7 @@ define('forum/categoryTools', ['forum/topic/move', 'topicSelect'], function(move
$('.delete_thread span').translateHtml('<i class="fa fa-fw ' + (isAnyDeleted ? 'fa-history' : 'fa-trash-o') + '"></i> [[topic:thread_tools.' + (isAnyDeleted ? 'restore' : 'delete') + ']]');
$('.pin_thread').translateHtml('<i class="fa fa-fw fa-thumb-tack"></i> [[topic:thread_tools.' + (isAnyPinned ? 'unpin' : 'pin') + ']]');
$('.lock_thread').translateHtml('<i class="fa fa-fw fa-' + (isAnyLocked ? 'un': '') + 'lock"></i> [[topic:thread_tools.' + (isAnyLocked ? 'un': '') + 'lock]]');
$('.purge_thread').toggleClass('none', !areAllDeleted);
$('.purge_thread').toggleClass('hidden', !areAllDeleted);
}
function isAny(method, tids) {

@ -399,11 +399,11 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT
function toggleModTools(pid, privileges) {
var postEl = $('.post-row[data-pid="' + pid + '"]');
postEl.find('.edit, .delete').toggleClass('none', !privileges.editable);
postEl.find('.move').toggleClass('none', !privileges.move);
postEl.find('.reply, .quote').toggleClass('none', !$('.post_reply').length);
postEl.find('.edit, .delete').toggleClass('hidden', !privileges.editable);
postEl.find('.move').toggleClass('hidden', !privileges.move);
postEl.find('.reply, .quote').toggleClass('hidden', !$('.post_reply').length);
var isSelfPost = parseInt(postEl.attr('data-uid'), 10) === parseInt(app.uid, 10);
postEl.find('.chat, .flag').toggleClass('none', isSelfPost || !app.uid);
postEl.find('.chat, .flag').toggleClass('hidden', isSelfPost || !app.uid);
}
function loadMorePosts(direction) {

@ -20,8 +20,8 @@ define('forum/topic/postTools', ['composer', 'share', 'navigator'], function(com
PostTools.toggle = function(pid, isDeleted) {
var postEl = $('#post-container li[data-pid="' + pid + '"]');
postEl.find('.quote, .favourite, .post_reply, .chat').toggleClass('none', isDeleted);
postEl.find('.purge').toggleClass('none', !isDeleted);
postEl.find('.quote, .favourite, .post_reply, .chat').toggleClass('hidden', isDeleted);
postEl.find('.purge').toggleClass('hidden', !isDeleted);
postEl.find('.delete .i').toggleClass('fa-trash-o', !isDeleted).toggleClass('fa-history', isDeleted);
postEl.find('.delete span').translateHtml(isDeleted ? ' [[topic:restore]]' : ' [[topic:delete]]');
};

@ -109,7 +109,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
$('.topic-main-buttons .post_reply').attr('disabled', isLocked).html(isLocked ? '<i class="fa fa-lock"></i> ' + translated : translated);
});
threadEl.find('.quote, .edit, .delete').toggleClass('none', isLocked);
threadEl.find('.quote, .edit, .delete').toggleClass('hidden', isLocked);
$('.topic-title i.fa-lock').toggleClass('hide', !data.isLocked);
ThreadTools.threadState.locked = data.isLocked;
}
@ -125,7 +125,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
threadEl.toggleClass('deleted', data.isDelete);
ThreadTools.threadState.deleted = data.isDelete;
$('.purge_thread').toggleClass('none', !data.isDelete);
$('.purge_thread').toggleClass('hidden', !data.isDelete);
if (data.isDelete) {
translator.translate('[[topic:deleted_message]]', function(translated) {

Loading…
Cancel
Save