details: https://code.openbravo.com/erp/devel/pi/rev/b810de893698
changeset: 13799:b810de893698
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Mon Sep 19 18:40:41 2011 +0200
summary: Fixed issue 18469. Fixed issue 18406. Attachments counter will now
work reliably.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-attachments.js
| 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r e29ca6c54053 -r b810de893698
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-attachments.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-attachments.js
Mon Sep 19 17:49:50 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-attachments.js
Mon Sep 19 18:40:41 2011 +0200
@@ -230,6 +230,7 @@
},
fillAttachments: function(attachments){
+ var id;
this.savedAttachments = attachments;
this.destroyAndRemoveMembers(this.getMembers());
var hLayout = isc.HLayout.create();
@@ -325,7 +326,12 @@
}
this.getForm().view.attachmentExists = true;
this.getForm().view.toolBar.updateButtonState();
-
isc_OBAttachmentsSectionItem_0.setValue(OB.I18N.getLabel('OBUIAPP_AttachmentTitle')+"
("+attachments.length+")");
+ var fields = this.getForm().getFields();
+ for(id = 0;id<fields.length;id++){
+ if(fields[id].type==='OBAttachmentsSectionItem'){
+ fields[id].setValue(OB.I18N.getLabel('OBUIAPP_AttachmentTitle')+"
("+attachments.length+")");
+ }
+ }
var downloadAllButton = isc.OBLinkButtonItem.create({
title: '[ '+OB.I18N.getLabel('OBUIAPP_AttachmentDownloadAll')+' ]',
width: '30px',
------------------------------------------------------------------------------
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