details: /erp/devel/pi/rev/501096f29f10
changeset: 11249:501096f29f10
user: Martin Taal <martin.taal <at> openbravo.com>
date: Tue Mar 15 09:49:57 2011 +0100
summary: Prevent undefined js error
details: /erp/devel/pi/rev/d725db400e1f
changeset: 11250:d725db400e1f
user: Martin Taal <martin.taal <at> openbravo.com>
date: Tue Mar 15 09:51:07 2011 +0100
summary: Related to issue 16182: Heartbeat Log tab does not scroll disabled
textarea field, add hover for disabled text fields
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
| 14 ++++++++-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
| 2 +-
2 files changed, 13 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r 3994ba1caafa -r d725db400e1f
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Tue Mar 15 09:14:02 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Tue Mar 15 09:51:07 2011 +0100
@@ -348,7 +348,12 @@
isc.OBTextItem.addProperties({
operator: 'iContains',
- validateOnExit: true
+ validateOnExit: true,
+ itemHoverHTML: function(item, form) {
+ if (this.isDisabled()) {
+ return this.getValue();
+ }
+ }
});
//== OBLinkItem ==
@@ -392,7 +397,12 @@
isc.OBTextAreaItem.addProperties({
operator: 'iContains',
- validateOnExit: true
+ validateOnExit: true,
+ itemHoverHTML: function(item, form) {
+ if (this.isDisabled()) {
+ return this.getValue();
+ }
+ }
});
// used in the grid
diff -r 3994ba1caafa -r d725db400e1f
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
Tue Mar 15 09:14:02 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
Tue Mar 15 09:51:07 2011 +0100
@@ -375,7 +375,7 @@
TAB_ID: this.view.tabId,
ROW_ID: this.getValue(OB.Constants.ID)
};
- if (parentId && isNew) {
+ if (parentId && isNew && this.view.parentProperty) {
parentColumn =
this.view.getPropertyDefinition(this.view.parentProperty).inpColumn;
requestParams[parentColumn] = parentId;
}
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits