You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/07/10 08:27:56 UTC
svn commit: r554846 -
/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js
Author: matzew
Date: Mon Jul 9 23:27:52 2007
New Revision: 554846
URL: http://svn.apache.org/viewvc?view=rev&rev=554846
Log:
TOMAHAWK-1029 - jsCookMenu does not work inside Trinidad's tr:form
Patch from Leonardo Uribe (lu4242 at gmail dot com), slightly modified the "undefined" part
Modified:
myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js
Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js?view=diff&rev=554846&r1=554845&r2=554846
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js Mon Jul 9 23:27:52 2007
@@ -27,7 +27,14 @@
// Link is a JSF action
var dummyForm = document.forms[target];
dummyForm.elements['jscook_action'].value = link;
- dummyForm.submit();
+ if (submitForm === undefined) {
+ //No Trinidad
+ dummyForm.submit();
+ } else {
+ //Trinidad style
+ var mysource = dummyForm.name+':jscook_action';
+ submitForm(dummyForm.name,1,{source:mysource});
+ }
}
}