]> git.mxchange.org Git - friendica.git/blobdiff - js/main.js
count unread forum items for forumlist widget (ping.php)
[friendica.git] / js / main.js
index df454afe1fb8bbccdf1aa86fafe9486917da74c0..f67d7183cedabb5e476e094459c386592a070ff9 100644 (file)
                                $(".group-"+gid+" .notify").addClass("show").text(gcount);
                        });
 
+                       $(".forum-widget-entry .notify").removeClass("show");
+                       $(data).find("forum").each(function() {
+                               var fid = this.id;
+                               var fcount = this.innerHTML;
+                               $(".forum-"+fid+" .notify").addClass("show").text(fcount);
+                       });
+
 
                        var eNotif = $(data).find('notif')