details: /erp/devel/pi/rev/aea80c574683
changeset: 11516:aea80c574683
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Wed Apr 06 10:07:29 2011 +0200
summary: fixed bug 16663: Notes Section kept on new
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
| 9 +++++++++
2 files changed, 10 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r a8d8d76948f2 -r aea80c574683
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
Wed Apr 06 09:13:25 2011 +0200
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
Wed Apr 06 10:07:29 2011 +0200
@@ -62,7 +62,7 @@
</#if>
</#if>
<#if fieldDefinition.type = "OBSectionItem" || fieldDefinition.type =
"OBNoteSectionItem" || fieldDefinition.type = "OBLinkedItemSectionItem" >
- sectionExpanded: true,
+ sectionExpanded: false,
defaultValue: '${fieldDefinition.label?js_string}',
itemIds: [
<#list fieldDefinition.children as childField>
diff -r a8d8d76948f2 -r aea80c574683
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
Wed Apr 06 09:13:25 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
Wed Apr 06 10:07:29 2011 +0200
@@ -62,6 +62,15 @@
refresh : function() {
this.getNotePart().refresh();
+},
+
+hide: function(){
+ this.Super('hide',arguments);
+ if (this.canvasItem) {
+ // Solves issue #16663: Forcing call to canvas hide.
+ // Shouldn't this be invoked by SmartClient
+ this.canvasItem.hide();
+ }
}
});
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits