|
From: <sv...@de...> - 2005-06-16 13:48:27
|
Author: pcamacho
Date: 2005-06-16 09:48:30 -0400 (Thu, 16 Jun 2005)
New Revision: 1334
Modified:
humano2/trunk/web/portal/site/readXslt.aspx
Log:
* FIX: when clicking somewhere outside of a pertinence attribute=20
(creation/update of a class) a javascript error was raised.=20
* ADD of comments.
Modified: humano2/trunk/web/portal/site/readXslt.aspx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/portal/site/readXslt.aspx 2005-06-15 23:36:06 UTC (=
rev 1333)
+++ humano2/trunk/web/portal/site/readXslt.aspx 2005-06-16 13:48:30 UTC (=
rev 1334)
@@ -44,10 +44,18 @@
}
else return "no date";
}
+ =20
+ // These to variables are globals and used by the at=
tribute pertinence (see xsl/pertinence.xsl)
+ // to close an iframe when you click outside of if
var IframeToClose =3D '';
var CurrentIframe =3D '';
=20
- function CloseOpenIframe(e)
+ /**
+ * If one iframe is opened and the user clicks outsi=
de, this iframe is closed
+ * @param IframeToClose: not a real param as it is a=
globlal var... The id of the Iframe to be closed
+ * @param IDEM ... The id of the iframe that has jus=
t been clicked
+ */
+ function CloseOpenIframe()
{
//alert("CurrentIframe: " + CurrentIframe);
if(CurrentIframe !=3D '' ) //Update values
@@ -60,13 +68,16 @@
else //Delete the IframeToClose
{
//alert("IframeToClose:" + IframeToClose);
- var iframe =3D document.getElementById(Ifram=
eToClose);
- iframe.style.visibility =3D 'hidden';
+ if(IframeToClose !=3D '')
+ {
+ var iframe =3D document.getElementById(I=
frameToClose);
+ iframe.style.visibility =3D 'hidden';
+ }
}
}
</script>
</head>
- <body style=3D"MARGIN: 10px" text=3D"#000000" vLink=3D"#000=
000" aLink=3D"#000000" link=3D"#000000" bgColor=3D"#ffffff" onclick=3D"Cl=
oseOpenIframe(Event)">
+ <body style=3D"MARGIN: 10px" text=3D"#000000" vLink=3D"#000=
000" aLink=3D"#000000" link=3D"#000000" bgColor=3D"#ffffff" onclick=3D"Cl=
oseOpenIframe()">
<form method=3D"POST" name=3D"MainForm" enctype=3D"multi=
part/form-data" target=3D"mainFrame" onsubmit=3D"return saveInstance(true=
)">
<xsl:attribute name=3D"action">
<xsl:if test=3D"/page/flagaction=3D'Create'">
|