[jira] Created: (OFBIZ-2282) Form Widget: skip-start breaks date-time

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

[jira] Created: (OFBIZ-2282) Form Widget: skip-start breaks date-time

Nicolas Malin (Jira)
Form Widget: skip-start breaks date-time
----------------------------------------

                 Key: OFBIZ-2282
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2282
             Project: OFBiz
          Issue Type: Bug
          Components: framework
            Reporter: Chris Howe
            Priority: Minor


When a from widget has the attribute of skip-start="true", the javascript creation references the incorrect DOM object.
ie
<form name="beginForm" type="single" skip-end="true>

</form>
<form name="middleForm" type="single" skip-start="true">
  <field name="date"><date-time/></field>
</form>

will result in the creation of the following
javascript call:  javascript:call_cal(document.middleForm.date,'');   should instead be:
javascript call:  javascript:call_cal(document.beginForm.date,'');  

or even better the super form name should be a variable.

The second option would require an additional attribute in the form definition.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-2282) Form Widget: skip-start breaks date-time

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-2282:
--------------------------------------

    Assignee: Jacques Le Roux

> Form Widget: skip-start breaks date-time
> ----------------------------------------
>
>                 Key: OFBIZ-2282
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2282
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Chris Howe
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> When a from widget has the attribute of skip-start="true", the javascript creation references the incorrect DOM object.
> ie
> <form name="beginForm" type="single" skip-end="true>
> </form>
> <form name="middleForm" type="single" skip-start="true">
>   <field name="date"><date-time/></field>
> </form>
> will result in the creation of the following
> javascript call:  javascript:call_cal(document.middleForm.date,'');   should instead be:
> javascript call:  javascript:call_cal(document.beginForm.date,'');  
> or even better the super form name should be a variable.
> The second option would require an additional attribute in the form definition.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.