]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/notifications.tpl
Merge pull request #3007 from annando/1607-performance
[friendica.git] / view / theme / frio / templates / notifications.tpl
index 5f131bd7edae52d255d44acaea2e4cbbe7f8b88e..126001e93329a1f60ad3ea4d91eba3302766092c 100644 (file)
                <div class="notif_nocontent">{{$notif_nocontent}}</div>
                {{/if}}
        </div>
+
+       {{* 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