|
From: <sv...@de...> - 2005-06-20 22:57:25
|
Author: pcamacho
Date: 2005-06-20 18:57:27 -0400 (Mon, 20 Jun 2005)
New Revision: 1370
Modified:
humano2/trunk/web/builder/site/js/form.js
humano2/trunk/web/builder/site/xsl/createform.xsl
humano2/trunk/web/builder/site/xsl/createreport.xsl
humano2/trunk/web/builder/site/xsl/createview.xsl
Log:
FIX: bug #213.
Modified: humano2/trunk/web/builder/site/js/form.js
=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/builder/site/js/form.js 2005-06-20 22:48:44 UTC (re=
v 1369)
+++ humano2/trunk/web/builder/site/js/form.js 2005-06-20 22:57:27 UTC (re=
v 1370)
@@ -21,7 +21,7 @@
=20
//Methods
this.UpdateSubmitAll =3D FormUpdateSubmitAll;
- this.DeleteReport =3D FormDeleteReport;
+ this.Delete =3D FormDelete;
}
=20
function FormUpdateSubmitAll()
@@ -105,7 +105,7 @@
} =20
=20
var sendType =3D document.getElementById("formType").value;
- alert("sendType:" + sendType);
+ //alert("sendType:" + sendType);
if (this.type =3D=3D 'FORM')
{
divSubmitAll.innerHTML +=3D=20
@@ -116,17 +116,20 @@
return true;
}
=20
-function FormDeleteReport()
+function FormDelete()
{
var msg =3D "Are you sure you want to delete the ";
switch(this.type)
{
case 'VIEW': =20
msg +=3D "view";
+ break;
case 'REPORT':
msg +=3D "report"; =20
+ break;
case 'FORM':
- name =3D "form";
+ msg +=3D "form";
+ break;
}
msg +=3D"?";
=20
@@ -138,10 +141,13 @@
{
case 'VIEW': =20
name =3D "viewId";
+ break;
case 'REPORT':
name =3D "reportId"; =20
+ break;
case 'FORM':
name =3D "formId";
+ break;
}
var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll=
")[0];
//alert(divSubmitAll);
Modified: humano2/trunk/web/builder/site/xsl/createform.xsl
=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/builder/site/xsl/createform.xsl 2005-06-20 22:48:44=
UTC (rev 1369)
+++ humano2/trunk/web/builder/site/xsl/createform.xsl 2005-06-20 22:57:27=
UTC (rev 1370)
@@ -185,7 +185,7 @@
showButtons: false
}
var rightColumn =3D new SortedGr=
aphicalList(rightColumnParams); =20
- alert("rightColumn:" + rightColu=
mn); =20
+ //alert("rightColumn:" + rightCo=
lumn); =20
=20
</script>
</td>
@@ -262,7 +262,7 @@
<xsl:if test=3D"/for=
m/formDatas/displayDeleteButton=3D'true'" >
<input type=3D"s=
ubmit" value=3D"Delete">
<xsl:attribu=
te name=3D"onclick">
- Form.Del=
eteReport();
+ Form.Del=
ete();
</xsl:attrib=
ute>
</input>
</xsl:if>
@@ -296,7 +296,7 @@
divSubmitAll: document.getElementByI=
d('SubmitAll')
}
var Form =3D new Form(<xsl:value-of sele=
ct=3D"/form/formDatas/classId" />,"FORM", infosToSubmit);
- alert("Form: " + Form);
+ //alert("Form: " + Form);
</xsl:if>
</script>
</form>
Property changes on: humano2/trunk/web/builder/site/xsl/createform.xsl
___________________________________________________________________
Name: svn:keywords
+ Id
Modified: humano2/trunk/web/builder/site/xsl/createreport.xsl
=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/builder/site/xsl/createreport.xsl 2005-06-20 22:48:=
44 UTC (rev 1369)
+++ humano2/trunk/web/builder/site/xsl/createreport.xsl 2005-06-20 22:57:=
27 UTC (rev 1370)
@@ -523,7 +523,7 @@
<xsl:if test=3D"=
/report/reportDatas/displayDeleteButton=3D'true'" >
<input type=3D=
"submit" value=3D"Delete">
<xsl:att=
ribute name=3D"onclick">
- Form=
.DeleteReport();
+ Form=
.Delete();
</xsl:at=
tribute>
</input>
</xsl:if>
Modified: humano2/trunk/web/builder/site/xsl/createview.xsl
=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/builder/site/xsl/createview.xsl 2005-06-20 22:48:44=
UTC (rev 1369)
+++ humano2/trunk/web/builder/site/xsl/createview.xsl 2005-06-20 22:57:27=
UTC (rev 1370)
@@ -420,7 +420,7 @@
<xsl:if test=
=3D"/view/viewDatas/displayDeleteButton=3D'true'" >
<input t=
ype=3D"submit" value=3D"Delete">
<xsl=
:attribute name=3D"onclick">
- =
Form.DeleteView();
+ =
Form.Delete();
</xs=
l:attribute>
</input>
</xsl:if>
|