Node.js based forum software built for the modern web
changed none to hidden
barisusakli043a73b4aeaf
diff --git a/public/src/forum/categoryTools.js b/public/src/forum/categoryTools.jsindex f40fb26b2f..620b3af8b0 100644--- a/public/src/forum/categoryTools.js+++ b/public/src/forum/categoryTools.js@@ -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) {diff --git a/public/src/forum/topic.js b/public/src/forum/topic.jsindex d1cf06fa2b..229b3b313c 100644--- a/public/src/forum/topic.js+++ b/public/src/forum/topic.js@@ -399,11 +399,11 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadTfunction 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) {diff --git a/public/src/forum/topic/postTools.js b/public/src/forum/topic/postTools.jsindex 96edf0720c..6a26e7120e 100644--- a/public/src/forum/topic/postTools.js+++ b/public/src/forum/topic/postTools.js@@ -20,8 +20,8 @@ define('forum/topic/postTools', ['composer', 'share', 'navigator'], function(comPostTools.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]]');};diff --git a/public/src/forum/topic/threadTools.js b/public/src/forum/topic/threadTools.jsindex f72705bd02..41a3d532bf 100644--- a/public/src/forum/topic/threadTools.js+++ b/public/src/forum/topic/threadTools.js@@ -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'], functhreadEl.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) {