details: /erp/devel/pi/rev/d45026432402
changeset: 10003:d45026432402
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Thu Jan 20 17:28:26 2011 +0100
summary: [form] Small javadoc fix
details: /erp/devel/pi/rev/84fa13558f87
changeset: 10004:84fa13558f87
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Thu Jan 20 19:37:15 2011 +0100
summary: [form] Fixes small issue with generated onFieldChanged function
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/DynamicExpressionParser.java
| 2 +-
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-form.js.ftl
| 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 866a5162b4b9 -r 84fa13558f87
modules/org.openbravo.client.application/src/org/openbravo/client/application/DynamicExpressionParser.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/DynamicExpressionParser.java
Thu Jan 20 18:47:51 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/DynamicExpressionParser.java
Thu Jan 20 19:37:15 2011 +0100
@@ -112,7 +112,7 @@
/**
* Gets a JavaScript expression based on the dynamic expression, e.g
@SomeColumn@!'Y' results in
- * currentValues['someColumn'] !== true.<br/>
+ * currentValues.someColumn !== true.<br/>
* Note: Field comparison with <b>'Y'</b> or <b>'N'</b> are transformed in
<b>true</b> or
* <b>false</b>
*
diff -r 866a5162b4b9 -r 84fa13558f87
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-form.js.ftl
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-form.js.ftl
Thu Jan 20 18:47:51 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-form.js.ftl
Thu Jan 20 19:37:15 2011 +0100
@@ -25,9 +25,9 @@
</#list>
],
onFieldChanged: function(form, item, value) {
- var currentValues = form.view.getCurrentValues();
- var context = this.view.getContextInfo(false, true);
form = form || this;
+ var context = this.view.getContextInfo(false, true),
+ currentValues = form.view.getCurrentValues();
<#list data.fields as field>
<#if field.readOnlyIf != "">
if(${field.readOnlyIf}) {
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits