|
From: <sv...@de...> - 2005-06-13 16:45:58
|
Author: pcamacho
Date: 2005-06-13 12:24:00 -0400 (Mon, 13 Jun 2005)
New Revision: 1313
Modified:
humano2/trunk/web/builder/site/foldermanagement.aspx
humano2/trunk/web/builder/site/formmanagement.aspx
humano2/trunk/web/builder/site/js/grafcomponents/sortedgraphicallist.j=
s
humano2/trunk/web/builder/site/xsl/createfolder.xsl
humano2/trunk/web/builder/site/xsl/createreport.xsl
humano2/trunk/web/builder/site/xsl/createview.xsl
Log:
FIX: bug #169.
Modified: humano2/trunk/web/builder/site/foldermanagement.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/builder/site/foldermanagement.aspx 2005-06-13 15:51=
:49 UTC (rev 1312)
+++ humano2/trunk/web/builder/site/foldermanagement.aspx 2005-06-13 16:24=
:00 UTC (rev 1313)
@@ -103,7 +103,7 @@
</a>
</td>
<td rowspan=3D"4">
- <input onclick=3D"Form.SetToDefault(=
leftColumn,rightColumn)" type=3D"button" value=3D"SetToDefault">
+ <input onclick=3D"rightColumn.SetToD=
efault();leftColumn.SetToDefault();" type=3D"button" value=3D"SetToDefaul=
t">
<br>
<!-- Do not forget to enable all ite=
m of the left list -->
<input type=3D"button" value=3D"Remo=
veAll" onclick=3D"leftColumn.EnableAll();rightColumn.RemoveAll();">
Modified: humano2/trunk/web/builder/site/formmanagement.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/builder/site/formmanagement.aspx 2005-06-13 15:51:4=
9 UTC (rev 1312)
+++ humano2/trunk/web/builder/site/formmanagement.aspx 2005-06-13 16:24:0=
0 UTC (rev 1313)
@@ -111,7 +111,7 @@
</a>
</td>
<td rowspan=3D"4">
- <input onclick=3D"Form.SetToDefault(left=
Column,rightColumn)" type=3D"button" value=3D"SetToDefault">
+ <input onclick=3D"leftColumn.SetToDefaul=
t();rightColumn.SetToDefault();" type=3D"button" value=3D"SetToDefault">
<br>
<!-- Do not forget to enable all item of=
the left list -->
<input type=3D"button" value=3D"RemoveAl=
l" onclick=3D"leftColumn.EnableAll();rightColumn.RemoveAll();">
Modified: humano2/trunk/web/builder/site/js/grafcomponents/sortedgraphica=
llist.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/grafcomponents/sortedgraphicallist.=
js 2005-06-13 15:51:49 UTC (rev 1312)
+++ humano2/trunk/web/builder/site/js/grafcomponents/sortedgraphicallist.=
js 2005-06-13 16:24:00 UTC (rev 1313)
@@ -21,6 +21,7 @@
//Fields
this.selfRefName =3D params.selfRefName;
this.fSortedList =3D new SortedList(params.itemList);
+ this.defaultList =3D params.itemList; //the list by default must be =
saved
this.showButtons =3D params.showButtons;
=20
//Graphical elements
@@ -48,6 +49,7 @@
this.RemoveAll =3D SortedGraphicalListRemoveAll;
this.Set =3D SortedGraphicalListSet;
this.Move =3D SortedGraphicalListMove;
+ this.SetToDefault =3D SortedGraphicalListSetToDefault;
=20
//Update the current document
this.PutAllComponents(params.divReceptor);
@@ -115,7 +117,6 @@
this.RefreshListBox();
}
=20
-
function SortedGraphicalListEnableAll()
{
this.fSortedList.EnableAll();
@@ -135,6 +136,14 @@
}
=20
/**
+ * Init the sortedgraphical list to the default values
+ */
+function SortedGraphicalListSetToDefault()
+{
+ this.Set(this.defaultList);
+}
+
+/**
* Take an item delete it from this object and then send it to another S=
ortedGraphicalList
* @param indexOfItem the index of the item from the first list to move
* @param receptor the receptor list
@@ -169,26 +178,26 @@
=20
function SortedGraphicalListRefreshListBox()
{
- var innerHtml =3D "";
- var sizeList =3D this.fSortedList.Length();
- =20
- innerHtml +=3D "<select size=3D\"10\" style=3D\"width:220px;\" =
class=3D\"drpdwn2\">";
- for(var i=3D0; i<sizeList;i++)
- {
- //alert(this.fSortedList.GetItem(i).GetName());
- var displayName =3D this.fSortedList.GetItem(i).GetName(=
);
- var value =3D this.fSortedList.GetItem(i).GetValue();
- var disabled =3D this.fSortedList.GetItem(i).GetDisabled=
();
- =20
- var displayOption =3D "";
- if (disabled =3D=3D true)
- {
- displayOption =3D "style=3D\"color:gray;\"";
- }
- innerHtml +=3D "<option value=3D\"" + value + "\" " + di=
splayOption + ">" + displayName + "</option>";
- }
- innerHtml +=3D"</select>";
- this.listBoxElement.innerHTML =3D innerHtml;
+ var innerHtml =3D "";
+ var sizeList =3D this.fSortedList.Length();
+ =20
+ innerHtml +=3D "<select size=3D\"10\" style=3D\"width:220px;\" clas=
s=3D\"drpdwn2\">";
+ for(var i=3D0; i<sizeList;i++)
+ {
+ //alert(this.fSortedList.GetItem(i).GetName());
+ var displayName =3D this.fSortedList.GetItem(i).GetName();
+ var value =3D this.fSortedList.GetItem(i).GetValue();
+ var disabled =3D this.fSortedList.GetItem(i).GetDisabled();
+ =20
+ var displayOption =3D "";
+ if (disabled =3D=3D true)
+ {
+ displayOption =3D "style=3D\"color:gray;\"";
+ }
+ innerHtml +=3D "<option value=3D\"" + value + "\" " + displa=
yOption + ">" + displayName + "</option>";
+ }
+ innerHtml +=3D"</select>";
+ this.listBoxElement.innerHTML =3D innerHtml;
}
=20
=20
Modified: humano2/trunk/web/builder/site/xsl/createfolder.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/createfolder.xsl 2005-06-13 15:51:=
49 UTC (rev 1312)
+++ humano2/trunk/web/builder/site/xsl/createfolder.xsl 2005-06-13 16:24:=
00 UTC (rev 1313)
@@ -102,7 +102,7 @@
</a>
</td>
<td rowspan=3D"4">
- <input onclick=3D"Form.SetToDefault(=
leftColumn,rightColumn)" type=3D"button" value=3D"SetToDefault">
+ <input onclick=3D"leftColumn.SetToDe=
fault();rightColumn.SetToDefault()" type=3D"button" value=3D"SetToDefault=
">
<br>
<!-- Do not forget to enable all ite=
m of the left list -->
<input type=3D"button" value=3D"Remo=
veAll" onclick=3D"leftColumn.EnableAll();rightColumn.RemoveAll();">
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-13 15:51:=
49 UTC (rev 1312)
+++ humano2/trunk/web/builder/site/xsl/createreport.xsl 2005-06-13 16:24:=
00 UTC (rev 1313)
@@ -412,7 +412,7 @@
</td>
<td>
<input type=3D"button" v=
alue=3D"SetToDefault"=20
- onclick=3D"Form.SetT=
oDefault(leftColumn,rightColumn)"></input>
+ onclick=3D"leftColum=
n.SetToDefault();rightColumn.SetToDefault();"></input>
<br/>
<!-- Do not forget to en=
able all item of the left list -->
<input type=3D"button" v=
alue=3D"RemoveAll" onclick=3D"leftColumn.EnableAll();rightColumn.RemoveAl=
l();"></input>
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-13 15:51:49=
UTC (rev 1312)
+++ humano2/trunk/web/builder/site/xsl/createview.xsl 2005-06-13 16:24:00=
UTC (rev 1313)
@@ -92,10 +92,6 @@
=20
function recargar()
{
- <![CDATA[
- //for(i=3D0;i<document.formulario.elements.length;i+=
+)
- // alert(document.formulario.elements[i].name);
- ]]>
indice =3D document.formulario.classList.selectedInd=
ex;
if(indice>0)
{
@@ -268,7 +264,7 @@
</td>
<td>
<input type=3D"butto=
n" value=3D"SetToDefault"=20
- onclick=3D"Form.=
SetToDefault(leftColumn,rightColumn)"></input>
+ onclick=3D"leftC=
olumn.SetToDefault();rightColumn.SetToDefault();"></input>
<br/>
<!-- Do not forget t=
o enable all item of the left list -->
<input type=3D"butto=
n" value=3D"RemoveAll" onclick=3D"leftColumn.EnableAll();rightColumn.Remo=
veAll();"></input>
|