You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/03/28 06:26:27 UTC
[jira] Resolved: (TOMAHAWK-1447) Invalid JavaScript in
myFacesUtils.js in function myFacesKupuFormSubmit()
[ https://issues.apache.org/jira/browse/TOMAHAWK-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved TOMAHAWK-1447.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.10-SNAPSHOT
Assignee: Leonardo Uribe
Thanks to Lutz Ulruch for provide this patch
> Invalid JavaScript in myFacesUtils.js in function myFacesKupuFormSubmit()
> -------------------------------------------------------------------------
>
> Key: TOMAHAWK-1447
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1447
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Html Editor
> Affects Versions: 1.1.9
> Reporter: Lutz Ulruch
> Assignee: Leonardo Uribe
> Fix For: 1.1.10-SNAPSHOT
>
>
> originalFormOnSubmit should by a local var and the function should always return a value:
> original faulty code:
> function myFacesKupuFormSubmit(){
> for(var i=0 ; i<myFacesKupuFormsIds.length ; i++){
> myFacesKupuEditors.prepareForm(document.forms[myFacesKupuFormsIds[i]], myFacesKupuClientIDs[i]);
> }
> originalFormOnSubmit = myFacesKupuOriginalFormsOnSubmits[0]; // TODO : Fix (How do we get the calling frame ??)
> if( originalFormOnSubmit )
> return originalFormOnSubmit();
> }
> corrected:
> function myFacesKupuFormSubmit(){
> for(var i=0 ; i<myFacesKupuFormsIds.length ; i++){
> myFacesKupuEditors.prepareForm(document.forms[myFacesKupuFormsIds[i]], myFacesKupuClientIDs[i]);
> }
> var originalFormOnSubmit = myFacesKupuOriginalFormsOnSubmits[0]; // TODO : Fix (How do we get the calling frame ??)
> if( originalFormOnSubmit ) {
> return originalFormOnSubmit();
> }
> return true;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.