Node.js based forum software built for the modern web
hiding edit and delete buttons from indiv. posts if thread is locked
Julian Lamae43a299dfdb
diff --git a/public/templates/topic.tpl b/public/templates/topic.tplindex 2166b2ffe5..47d859186b 100644--- a/public/templates/topic.tpl+++ b/public/templates/topic.tpl@@ -223,6 +223,8 @@var threadReplyBtn = document.getElementById('post_reply'),postReplyBtns = document.querySelectorAll('#post-container .post_reply'),quoteBtns = document.querySelectorAll('#post-container .quote'),+ editBtns = document.querySelectorAll('#post-container .edit'),+ deleteBtns = document.querySelectorAll('#post-container .delete'),numReplyBtns = postReplyBtns.length,lockThreadEl = document.getElementById('lock_thread'),x;@@ -233,6 +235,8 @@for(x=0;x<numReplyBtns;x++) {postReplyBtns[x].innerHTML = 'Locked <i class="icon-lock"></i>';quoteBtns[x].style.display = 'none';+ editBtns[x].style.display = 'none';+ deleteBtns[x].style.display = 'none';}thread_state.locked = '1';@@ -243,6 +247,8 @@for(x=0;x<numReplyBtns;x++) {postReplyBtns[x].innerHTML = 'Reply <i class="icon-reply"></i>';quoteBtns[x].style.display = 'inline-block';+ editBtns[x].style.display = 'inline-block';+ deleteBtns[x].style.display = 'inline-block';}thread_state.locked = '0';