svn commit: r1688773 - /ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1688773 - /ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl

jleroux@apache.org
Author: jleroux
Date: Thu Jul  2 07:40:15 2015
New Revision: 1688773

URL: http://svn.apache.org/r1688773
Log:
Puts the focus on the 1st field of the scheduleForm in the setServiceParameterSync.ftl if it exists

Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl?rev=1688773&r1=1688772&r2=1688773&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl Thu Jul  2 07:40:15 2015
@@ -30,6 +30,11 @@ under the License.
           <input type="text" size="20" name="${serviceParameter.name}" value="<#if serviceParameter.value??>${serviceParameter.value?string}</#if>"<#if serviceParameter.optional == "N"> class="required"</#if>/>
           <#if serviceParameter.optional == "N"><span class="tooltip">${uiLabelMap.CommonRequired}</span></#if>
           <#if serviceParameter.defaultValue?has_content>${uiLabelMap.WebtoolsServiceDefault} ${serviceParameter.defaultValue?string}</#if>
+          <#if serviceParameter_index == 0>
+            <script language="JavaScript" type="text/javascript">
+              document.scheduleForm.${serviceParameter.name}.focus();
+            </script>
+          </#if>
         </td>
       </tr>
     </#list>
@@ -37,4 +42,4 @@ under the License.
         <td colspan="2" align="center"><input type="submit" value="${uiLabelMap.CommonSubmit}" /></td>
       </tr>
     </table>
-</form>
\ No newline at end of file
+</form>