details:   /erp/devel/pi/rev/a3dd21ac300b
changeset: 11544:a3dd21ac300b
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Apr 07 14:23:30 2011 +0200
summary:   fixed bug 16691: Notes are not shown sometimes

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
 |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 6ab82961bf8c -r a3dd21ac300b 
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
    Thu Apr 07 13:42:28 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form-notes.js
    Thu Apr 07 14:23:30 2011 +0200
@@ -64,6 +64,11 @@
        this.getNotePart().refresh();
 },
 
+expandSection: function() {
+  this.Super('expandSection',arguments);
+  this.form.noteSection.refresh();
+},
+
 hide: function(){
  this.Super('hide',arguments);
  if (this.canvasItem) {
@@ -219,7 +224,8 @@
 
                                                        fetchData : 
function(criteria, callback,
                                                                        
requestProperties) {
-                                                         if 
(this.layout.isDrawn()) {
+                                                         if 
(this.layout.getForm() && this.layout.getForm().noteSection && 
+                                                             
this.layout.getForm().noteSection.visible && 
this.layout.getForm().noteSection.isExpanded()) {
                                                                  return 
this.Super('fetchData', [ this.convertCriteria(criteria),
                                                                                
callback, requestProperties ]);
                                                          }

------------------------------------------------------------------------------
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

Reply via email to