From: <pus...@us...> - 2009-07-03 10:54:48
|
Revision: 3850 http://uni-d.svn.sourceforge.net/uni-d/?rev=3850&view=rev Author: pushkutza Date: 2009-07-03 10:54:37 +0000 (Fri, 03 Jul 2009) Log Message: ----------- ICT-1663 Modified Paths: -------------- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script Modified: trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html =================================================================== --- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html 2009-07-02 08:39:54 UTC (rev 3849) +++ trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html 2009-07-03 10:54:37 UTC (rev 3850) @@ -80,7 +80,7 @@ onchange="prop:changeComboboxSelection"/> <span jwcid="@If" condition="prop:notHiddenAnchors"> - <span jwcid="@LinkSubmit" onclick="clearValidation(this);" class="addLinkClass displayInline" + <span jwcid="@LinkSubmit" onclick="clearValidation(this);" class="displayInline addLinkClass" listener="listener:prepareReturnHandler" action="listener:runAdd" id="prop:addId"> <span key="Add"/> </span> @@ -89,7 +89,7 @@ </span> <span jwcid="@If" condition="prop:notHiddenAnchors"> - <span jwcid="display@LinkSubmit" onclick="clearValidation(this);" class="viewLinkClass displayInline" + <span jwcid="display@LinkSubmit" onclick="clearValidation(this);" class="displayInline viewLinkClass" listener="listener:prepareReturnHandler" action="listener:runView" id="prop:viewId"> <span jwcid="@If" condition="prop:comboboxOrEmbedded"> <span jwcid="@If" condition="prop:valueSet"><span class="viewLinkClassCombobox"><span Modified: trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script =================================================================== --- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script 2009-07-02 08:39:54 UTC (rev 3849) +++ trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script 2009-07-03 10:54:37 UTC (rev 3850) @@ -22,6 +22,7 @@ function changeComboSelection(element, fieldName, isFake) { + //alert("changeComboSelection"); var sel = element.options[element.selectedIndex].innerHTML; var display = searchByIdStart('display', element.parentNode.getElementsByTagName('A')); var input = searchByIdStart('inputBox', element.parentNode.getElementsByTagName('INPUT')); @@ -42,6 +43,9 @@ if (display!=null) display.innerHTML = "View"; if ( isFake ) input.value = sel; } + var toeval = 'onChangeCombobox${onchange}(element, fieldName, isFake )'; + //alert(toeval); + eval(toeval); } var formerValueForInputBox = null; @@ -239,6 +243,18 @@ return false; } + function onChangeCombobox${onchange}(element, fieldName, isFake) + { + //alert("element : " + element); + <if-not expression="onchange == null || onchange.equals('')"> + if ( window.${onchange}Combobox ) + { + return window.${onchange}Combobox(element, fieldName, isFake); + } + </if-not> + return false; + } + function ajaxReceive${onchange}(element, uoid, inputValue, displayValue, isFake, isCombo, error, arr) { <if-not expression="onchange == null || onchange.equals('')"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |