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) {
var birthdaystoday = $(data).find('birthdays-today').text();
if(birthdaystoday == 0) { $('#birthdays-update').removeClass('notif-birthdays-today') } else { $('#birthdays-update').addClass('notif-birthdays-today') }
+ $(".sidebar-group-li .notify").removeClass("show");
+ $(data).find("group").each(function() {
+ var gid = this.id;
+ var gcount = this.innerHTML;
+ $(".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')