Commits

Anonymous committed 6afc00f

Minor bugfixing after showcase testing

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2842573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

src/java/com/opensymphony/webwork/components/DoubleSelect.java

         super.evaluateExtraParams();
 
         // force the onchange parameter
-        addParameter("onchange", getParameters().get("name") + "Redirect(this.options.selectedIndex)");
+        addParameter("onchange", getParameters().get("id") + "Redirect(this.options.selectedIndex)");
     }
 }

src/java/template/simple/doubleselect.ftl

 <#include "/${parameters.templateDir}/simple/select.ftl" />
 <#assign startCount = 0/>
-<#if parameters.doubleHeaderKey?exists && parameters.doubleHeaderValue?exists>
+<#if parameters.headerKey?exists && parameters.headerValue?exists>
     <#assign startCount = startCount + 1/>
 </#if>
-<#if parameters.doubleEmptyOption?exists>
+<#if parameters.emptyOption?exists>
     <#assign startCount = startCount + 1/>
 </#if>
 
         if ((${parameters.id}Temp.options.length > 0) && (! selected)) {
            	${parameters.id}Temp.options[0].selected = true;
         }
-        eval(${parameters.doubleOnchange?html});
     }
 </script>