|
|
|
@ -186,7 +186,7 @@ define('forum/topic/threadTools', [
|
|
|
|
|
components.get('topic/lock').toggleClass('hidden', data.isLocked).parent().attr('hidden', data.isLocked ? '' : null);
|
|
|
|
|
components.get('topic/unlock').toggleClass('hidden', !data.isLocked).parent().attr('hidden', !data.isLocked ? '' : null);
|
|
|
|
|
|
|
|
|
|
var hideReply = (data.isLocked || ajaxify.data.deleted) && !ajaxify.data.privileges.isAdminOrMod;
|
|
|
|
|
var hideReply = !!((data.isLocked || ajaxify.data.deleted) && !ajaxify.data.privileges.isAdminOrMod);
|
|
|
|
|
|
|
|
|
|
components.get('topic/reply/container').toggleClass('hidden', hideReply);
|
|
|
|
|
components.get('topic/reply/locked').toggleClass('hidden', ajaxify.data.privileges.isAdminOrMod || !data.isLocked || ajaxify.data.deleted);
|
|
|
|
|