]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/notifications.tpl
Fix Issue #2822 - Add new setting to user settings page
[friendica.git] / view / theme / frio / templates / notifications.tpl
index 82f11c8be4a47446f156a42e79dae7b1eaadeb8c..126001e93329a1f60ad3ea4d91eba3302766092c 100644 (file)
        {{* The pager *}}
        {{$notif_paginate}}
 </div>
+
+{{* Since only the DIV's inside the notification-list are marked with the class "unseen",
+we need some js to transfer this class to the parent li list-elements *}}
+<script>
+$(document).ready(function(){
+       if( $(".notif-item").hasClass("unseen")) {
+               $(".notif-item.unseen").parent("li").addClass("unseen");
+       }
+});
+</script>
\ No newline at end of file