diff options
| author | Pashe <pashe@users.noreply.github.com> | 2014-10-20 16:44:19 -0500 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 13:00:47 +0200 |
| commit | 01446aad124291f88d5fab8f400321307dffebe7 (patch) | |
| tree | 3753dac74798c20f3c7b4216f4587f479c0dad51 | |
| parent | 6f301505e33c42a37fbc7159f3144f41922c7dc6 (diff) | |
thread-watcher.js: fix background and border
| -rw-r--r-- | js/thread-watcher.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/thread-watcher.js b/js/thread-watcher.js index 52b8142e..625e95e0 100644 --- a/js/thread-watcher.js +++ b/js/thread-watcher.js @@ -40,6 +40,7 @@ watchlist.render = function(reset) { $('#watchlist').append(threads.join('')); } else { //If the watchlist has not yet been rendered, create it. + var menuStyle = getComputedStyle($('.boardlist')[0]); $('form[name="post"]').before( $('<div id="watchlist">'+ '<div class="watchlist-controls">'+ @@ -47,10 +48,7 @@ watchlist.render = function(reset) { '<span><a id="clearGhosts">[Clear Ghosts]</a></span>'+ '</div>'+ threads.join('')+ - '</div>').css({ - background: $('.reply').css('background'), - borderColor : $('.reply').css('border-color') - })); + '</div>').css("background-color", menuStyle.backgroundColor).css("border", menuStyle.borderBottomWidth+" "+menuStyle.borderBottomStyle+" "+menuStyle.borderBottomColor)); } return this; }; |
