Node.js based forum software built for the modern web
disable/enable reply buttons on lock/unlock
barisusaklia1b6019efe60
diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.jsindex 55f65c9129..0d10cd844c 100644--- a/public/src/client/topic/threadTools.js+++ b/public/src/client/topic/threadTools.js@@ -105,7 +105,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], functranslator.translate(isLocked ? '[[topic:locked]]' : '[[topic:reply]]', function(translated) {var className = isLocked ? 'fa-lock' : 'fa-reply';- threadEl.find('[component="post/reply"]').html('<i class="fa ' + className + '"></i> ' + translated);+ threadEl.find('[component="post/reply"]').html('<i class="fa ' + className + '"></i> ' + translated).attr('disabled', isLocked);$('[component="topic/reply"]').attr('disabled', isLocked).html(isLocked ? '<i class="fa fa-lock"></i> ' + translated : translated);});