# HG changeset patch # User Bohdan Horbeshko # Date 2018-07-22 14:21:56 # Node ID 1012c5383e0b5d743478c248e43d29428b1aadd4 # Parent 206674fc3eed35529f353ec0089ece4aa681083d Don't show the Hide/Show option if it won't work diff --git a/boards/static/js/main.js b/boards/static/js/main.js old mode 100644 new mode 100755 --- a/boards/static/js/main.js +++ b/boards/static/js/main.js @@ -268,7 +268,8 @@ function addContextMenu() { name: gettext('Hide/show'), callback: function(key, opt) { togglePostHidden(postId); - } + }, + visible: !!localStorage }, edit: { name: gettext('Edit'),