From: David ‘Bombe’ Roden Date: Sat, 15 Jan 2011 14:48:24 +0000 (+0100) Subject: Don’t mark everything as known when a “click to show” area was clicked. X-Git-Tag: 0.4^2~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6faf18302bb1bc89a80f9066be0a194ade37737e;p=Sone.git Don’t mark everything as known when a “click to show” area was clicked. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index c11c436..41a2054 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -500,7 +500,10 @@ function ajaxifyPost(postElement) { }); /* mark everything as known on click. */ - $(postElement).click(function() { + $(postElement).click(function(event) { + if ($(event.target).hasClass("click-to-show")) { + return false; + } markPostAsKnown(this); });