Add element IDs to new-element notifications.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 Apr 2011 09:13:28 +0000 (11:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 Apr 2011 09:13:28 +0000 (11:13 +0200)
src/main/resources/static/css/sone.css
src/main/resources/templates/notify/newPostNotification.html
src/main/resources/templates/notify/newReplyNotification.html
src/main/resources/templates/notify/newSoneNotification.html

index 38fcd19..f6bb62d 100644 (file)
@@ -121,6 +121,10 @@ textarea {
        float: right;
 }
 
+#sone #notification-area .notification .hidden {
+       display: none;
+}
+
 #sone #plugin-warning {
        border: solid 0.5em red;
        padding: 0.5em;
index 177b470..54008dc 100644 (file)
@@ -12,6 +12,7 @@
        </form>
        <%= Notification.NewPost.Text|l10n|html>
        <%foreach posts post>
+               <div class="hidden post-id"><%post.id|html></div>
                <a class="link-<% post.id|html>" href="viewPost.html?post=<% post.id|html>"><% post.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
        <%/foreach>
 </div>
index 21a5ca0..1253da5 100644 (file)
@@ -12,6 +12,7 @@
        </form>
        <%= Notification.NewReply.Text|l10n|html>
        <%foreach replies reply>
+               <div class="hidden reply-id"><%reply.id|html></div>
                <a class="link-<% reply.post.id|html>" href="viewPost.html?post=<% reply.post.id|html>"><% reply.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
        <%/foreach>
 </div>
index 45357b1..aaa0d14 100644 (file)
@@ -12,6 +12,7 @@
        </form>
        <%= Notification.NewSone.Text|l10n|html>
        <%foreach sones sone>
+               <div class="hidden sone-id"><% sone.id|html></div>
                <a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
        <%/foreach>
 </div>