details: https://code.openbravo.com/erp/devel/pi/rev/5a7da4d16d1d
changeset: 26634:5a7da4d16d1d
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Thu May 14 12:15:15 2015 +0200
summary: Fixed issue 29561: 'Time' fields now can be set as no updateable via
AD_COLUMN
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
| 11 ++++++++-
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 135a4a43d546 -r 5a7da4d16d1d
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
Thu May 14 10:55:38 2015 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
Thu May 14 12:15:15 2015 +0200
@@ -227,10 +227,17 @@
// PS: It cannot be done by overwriting 'setDisable' in the parent item,
because default
// form states (and 'disabled: true'could be one of them), doesn't pass
// through 'setDisabled' function.
+ var me = this;
if (this.parentItem.isDisabled() && !this.isDisabled()) {
- this.setDisabled(true);
+ // Timeout to avoid fireOnPause
+ setTimeout(function () {
+ me.setDisabled(true);
+ }, 10);
} else if (!this.parentItem.isDisabled() && this.isDisabled()) {
- this.setDisabled(false);
+ // Timeout to avoid fireOnPause
+ setTimeout(function () {
+ me.setDisabled(false);
+ }, 10);
}
// SC does not handle properly styles for inner textItem representing the
time,
// this is a temporary hack till it is fixed in SC code
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits