]> git.mxchange.org Git - friendica.git/blobdiff - js/main.js
Bugfix: Comments weren't relayed anymore to Diaspora due to a Diaspora change
[friendica.git] / js / main.js
index df454afe1fb8bbccdf1aa86fafe9486917da74c0..f106b3daf43e93141a24cf3bf68d4e60cde08d2f 100644 (file)
@@ -1,6 +1,21 @@
   function resizeIframe(obj) {
     obj.style.height = 0;
-    obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
+       _resizeIframe(obj, 0);
+  }
+  
+  function _resizeIframe(obj, desth) {
+       var h = obj.style.height;
+       var ch = obj.contentWindow.document.body.scrollHeight + 'px';
+       if (h==ch) {
+               return;
+       }
+       console.log("_resizeIframe", obj, desth, ch);
+       if (desth!=ch) {
+               setTimeout(_resizeIframe, 500, obj, ch);
+       } else {
+               obj.style.height  = ch;
+               setTimeout(_resizeIframe, 1000, obj, ch);
+       }
   }
 
   function openClose(theID) {
                                $(".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')