Permalink
Browse files

MDL-10021: fix xhtml/javascript

  • Loading branch information...
jerome
jerome committed Nov 4, 2008
1 parent 1f3d624 commit 5a3288003ed8a2fa77980ff22c40dce5115e971b
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/resource/type/file/resource.class.php
@@ -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 resizeEmbeddedHtml() {
';
}
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 resizeEmbeddedHtml() {
}
resizeEmbeddedHtml();
YAHOO.widget.Overlay.windowResizeEvent.subscribe(resizeEmbeddedHtml);
+ //]]>
</script>
';

0 comments on commit 5a32880

Please sign in to comment.