Skip to content

Commit 5d33dfe

Browse files
committed
IETF 78 code from Adam Roach: Make the selectable WG agenda feature of the datatracker IETF Agenda even less resource intensive.
- Legacy-Id: 2449
1 parent 3214714 commit 5d33dfe

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ietf/templates/meeting/agenda.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@
104104
if (rows[i].className == 'groupagenda')
105105
{
106106
var iframe = rows[i].firstElementChild.nextElementSibling.firstElementChild;
107-
iframe.setAttribute("src",iframe.getAttribute("xsrc"));
107+
if (iframe.getAttribute("xsrc") != iframe.getAttribute("src"))
108+
{
109+
iframe.setAttribute("src",iframe.getAttribute("xsrc"));
110+
}
108111
r(iframe);
109112
}
110113
}
@@ -123,8 +126,8 @@
123126
{
124127
try
125128
{
126-
docHeight = obj.contentWindow.document.height;
127-
obj.style.height = (docHeight + 20) * 1.05 + "px"
129+
docHeight = obj.contentWindow.document.body.scrollHeight;
130+
obj.height = docHeight;
128131
}
129132
catch (e) {}
130133
}

0 commit comments

Comments
 (0)