Show arrow before links in notifications that link to the current page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 6 May 2011 20:44:56 +0000 (22:44 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 6 May 2011 20:44:56 +0000 (22:44 +0200)
This fixes #145.

src/main/resources/static/css/sone.css
src/main/resources/static/javascript/sone.js

index 2621b50..80054a8 100644 (file)
@@ -89,6 +89,10 @@ textarea {
        content: '★ ';
 }
 
+#sone a.in-page-link:before {
+       content: '↓ ';
+}
+
 #sone a img {
        border: none;
 }
index e300214..d21e6c6 100644 (file)
@@ -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");
                        }
                }
        });