From a6c5169b296db74bc7181e29818fa0068c535584 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 6 May 2011 22:44:56 +0200 Subject: [PATCH] Show arrow before links in notifications that link to the current page. This fixes #145. --- src/main/resources/static/css/sone.css | 4 ++++ src/main/resources/static/javascript/sone.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 2621b50..80054a8 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -89,6 +89,10 @@ textarea { content: '★ '; } +#sone a.in-page-link:before { + content: '↓ '; +} + #sone a img { border: none; } diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index e300214..d21e6c6 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -878,7 +878,7 @@ function ajaxifyNotification(notification) { if (linkElement.is("[href^='viewPost']")) { id = linkElement.attr("class").substr(5); if (hasPost(id)) { - linkElement.attr("href", "#post-" + id); + linkElement.attr("href", "#post-" + id).addClass("in-page-link"); } } }); -- 2.7.4