details: /erp/devel/pi/rev/03a98f4b0ab0
changeset: 10870:03a98f4b0ab0
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Feb 24 16:06:58 2011 +0100
summary: Show different info for different widgets with same class
diffstat:
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r ab7d3751a0f6 -r 03a98f4b0ab0
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
---
a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
Thu Feb 24 15:25:43 2011 +0100
+++
b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
Thu Feb 24 16:06:58 2011 +0100
@@ -443,7 +443,8 @@
var localWidgetProperties = isc.addProperties({}, widgetProperties);
for (i = 0; i < this.availableWidgetClasses.length; i++) {
if (this.availableWidgetClasses[i].widgetClassName &&
- this.availableWidgetClasses[i].widgetClassName ===
widgetProperties.widgetClassName) {
+ this.availableWidgetClasses[i].widgetClassName ===
widgetProperties.widgetClassName &&
+ this.availableWidgetClasses[i].title === widgetProperties.title) {
localWidgetProperties.showMaximizeButton =
this.availableWidgetClasses[i].showMaximizeButton;
localWidgetProperties.menuItems =
this.availableWidgetClasses[i].menuItems;
localWidgetProperties.fieldDefinitions =
this.availableWidgetClasses[i].fieldDefinitions;
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits