# HG changeset patch # User neko259 # Date 2017-11-06 20:25:06 # Node ID 7ff6c47edeb3f5463614d274398cebd47b94d168 # Parent cc32b5961a9552039d4ccdd54aa7bd3050d0c407 Show monochrome image popups in monochrome threads diff --git a/boards/static/css/base.css b/boards/static/css/base.css --- a/boards/static/css/base.css +++ b/boards/static/css/base.css @@ -144,7 +144,7 @@ textarea, input { opacity: 1; } -.monochrome > .image > .thumb > img { +.monochrome > .image > .thumb > img, .monochrome.img-full { filter: grayscale(100%); -webkit-filter: grayscale(100%); } diff --git a/boards/static/js/image.js b/boards/static/js/image.js --- a/boards/static/js/image.js +++ b/boards/static/js/image.js @@ -184,6 +184,9 @@ PopupImageViewer.prototype.view = functi newImage.click(function() { $(this).remove(); }); + if (post.parent().parent().hasClass('monochrome')) { + newImage.addClass('monochrome'); + } } else { existingPopups.remove(); }