details: /erp/devel/pi/rev/d79bb7553cc1
changeset: 11356:d79bb7553cc1
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Thu Mar 24 14:00:07 2011 +0100
summary: Fixes issue 16412: Hide/Show recent documents based on admin mode
diffstat:
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
| 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 5e04d413646b -r d79bb7553cc1
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 Mar 24 11:28:03 2011 +0100
+++
b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
Thu Mar 24 14:00:07 2011 +0100
@@ -92,8 +92,9 @@
adminLevelValue: '',
initWidget: function(args){
- var me = this, i, widgetInstance, recentViewsLayout,
recentViewsLinksLayout, recentDocumentsLayout, recentDocumentsLinksLayout,
addWidgetLayout, adminOtherMyOBLayout, refreshLayout;
-
+ var me = this, i, widgetInstance, recentViewsLayout,
recentViewsLinksLayout, recentDocumentsLayout,
+ recentDocumentsLinksLayout, addWidgetLayout, adminOtherMyOBLayout,
refreshLayout;
+
recentViewsLayout = isc.VLayout.create({});
recentViewsLayout.addMember(isc.Label.create({
height: 1,
@@ -224,6 +225,7 @@
}
this.leftColumnLayout.recentViewsLayout = recentViewsLayout;
+ this.leftColumnLayout.recentDocumentsLayout = recentDocumentsLayout;
this.leftColumnLayout.addWidgetLayout = addWidgetLayout;
this.leftColumnLayout.adminOtherMyOBLayout = adminOtherMyOBLayout;
this.leftColumnLayout.refreshLayout = refreshLayout;
@@ -778,6 +780,7 @@
leftColumn.recentViewsLayout.hide();
leftColumn.refreshLayout.hide();
+ leftColumn.recentDocumentsLayout.hide();
leftColumn.adminOtherMyOBLayout.getMembers()[1].destroy(); // remove
DynamicForm
leftColumn.adminOtherMyOBLayout.hide();
leftColumn.addMember(isc.OBMyOBPublishChangesDialog.create({
@@ -795,6 +798,7 @@
this.adminLevelValue = '';
leftColumn.recentViewsLayout.show();
+ leftColumn.recentDocumentsLayout.show();
leftColumn.refreshLayout.show();
leftColumn.adminOtherMyOBLayout.show();
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits