From 2a087d633d2860e59e62d5f4e76ec09f589f5efc Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 5 Apr 2015 21:35:56 -0700 Subject: [PATCH] Use CSS for hiding thread watcher close button. --- src/General/css/style.css | 3 +++ src/Monitoring/ThreadWatcher.coffee | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/css/style.css b/src/General/css/style.css index a53c706ca..c3c55c8ad 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -837,6 +837,9 @@ span.hide-announcement { #thread-watcher a { text-decoration: none; } +:root:not(.fixed-watcher) #thread-watcher .move > .close { + display: none; +} #thread-watcher .move > .close { position: absolute; right: 0px; diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index 8cfc4ded4..537548c40 100755 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -18,7 +18,6 @@ ThreadWatcher = @closeButon = $('.move > .close', @dialog) @unreaddb = Unread.db or new DataBoard 'lastReadPosts' - @closeButon.hidden = not Conf['Toggleable Thread Watcher'] if Conf['Toggleable Thread Watcher'] @setHidden Conf['Thread Watcher Hidden'] $.sync 'Thread Watcher Hidden', @setHidden