Author: jleroux
Date: Fri Oct 18 17:30:11 2013
New Revision: 1533567
URL:
http://svn.apache.org/r1533567Log:
"Applied fix from trunk for revision: 1511279" Partial backport, only the fix, because there is no example component in new releases
------------------------------------------------------------------------
r1511279 | jleroux | 2013-08-07 14:24:10 +0200 (mer. 07 août 2013) | 6 lignes
A patch from Leon for "slight patch to "other-field-size" of drop-down form element""
https://issues.apache.org/jira/browse/OFBIZ-5285"other-field-size" of drop-down form element is a very nice feature, but it's crippled in current version.
attached a patch to make it works and added an example section for that into FormWidgetExample.
jleroux: Interesting, I did not know this feature existed, it was committed long ago by David (before ASF era)
------------------------------------------------------------------------
Modified:
ofbiz/branches/release13.07/ (props changed)
ofbiz/branches/release13.07/framework/widget/templates/htmlFormMacroLibrary.ftl
Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1511279
Modified: ofbiz/branches/release13.07/framework/widget/templates/htmlFormMacroLibrary.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=1533567&r1=1533566&r2=1533567&view=diff==============================================================================
--- ofbiz/branches/release13.07/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/branches/release13.07/framework/widget/templates/htmlFormMacroLibrary.ftl Fri Oct 18 17:30:11 2013
@@ -249,7 +249,7 @@ under the License.
disa = '';
document.write("<input type='text' name='${otherFieldName}' value='${otherValue?js_string}' size='${otherFieldSize}'"+disa+" onfocus='check_choice(document.${formName}.${fieldName})' />");
if(disa && document.styleSheets)
- document.${formName}.${fieldName}.style.visibility = 'hidden';
+ document.${formName}.${otherFieldName}.style.visibility = 'hidden';
//--></script>
</#if>