MDL-10021: fix xhtml/javascript

This commit is contained in:
jerome
2008-11-04 02:23:27 +00:00
parent 1f3d624490
commit 5a3288003e
+3 -1
View File
@@ -396,6 +396,7 @@ function display() {
///add some javascript in order to fit this object tag into the browser window
echo '<script type="text/javascript">
//<![CDATA[
function resizeEmbeddedHtml() {
//calculate new embedded html height size
';
@@ -408,7 +409,7 @@ function display() {
';
}
echo ' //the object tag cannot be smaller than a human readable size
if (objectheight<200){
if (objectheight < 200) {
objectheight = 200;
}
//resize the embedded html object
@@ -417,6 +418,7 @@ function display() {
}
resizeEmbeddedHtml();
YAHOO.widget.Overlay.windowResizeEvent.subscribe(resizeEmbeddedHtml);
//]]>
</script>
';