# HG changeset patch # User neko259 # Date 2016-02-04 16:51:48 # Node ID daf7f27709f5d0cc5a5b5d980dfe554a435b8c87 # Parent 378f92acf6637b5395e6e77eabe63465b726a98b Close image popup when clicked on it 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 @@ -180,6 +180,9 @@ PopupImageViewer.prototype.view = functi stack: '.img-full' }) .appendTo($('body')); + newImage.click(function() { + $(this).remove(); + }); } else { existingPopups.remove(); }