details: https://code.openbravo.com/erp/devel/pi/rev/535838efebce
changeset: 13794:535838efebce
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Mon Sep 19 16:04:17 2011 +0200
summary: Fixed issue 17757. ShowAuditDefault preference will be used to
expand/not expand the Audit section in the form
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
| 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 4147af532ff5 -r 535838efebce
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
Mon Sep 19 14:52:27 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
Mon Sep 19 16:04:17 2011 +0200
@@ -1852,6 +1852,12 @@
this.originalShowIf(item, value, form, currentValues, context);
};
}
+ if (fld.type === 'OBAuditSectionItem') {
+ var expandAudit = OB.PropertyStore.get('ShowAuditDefault',
this.standardProperties.inpwindowId);
+ if (expandAudit && expandAudit==='Y') {
+ fld.sectionExpanded = true;
+ }
+ }
return fld;
},
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits