details:   https://code.openbravo.com/erp/devel/pi/rev/4f449d9a56f7
changeset: 24156:4f449d9a56f7
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Mon Aug 04 14:10:59 2014 +0200
summary:   Fixes issue 27017: Callouts of combos on manual forms does not work 
properly

The original problem was that the response of the callout was not being applied 
to the proper iFrame. To solve this, the activeFrame attribute was created to 
know which frame is active at any given time, in order to apply the callout 
response in that frame.

The problem of this issue is that the activeFrame was not being stored properly 
when opening a new manual window.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js
 |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 28068c12e140 -r 4f449d9a56f7 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js
     Mon Aug 04 11:24:21 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js
     Mon Aug 04 14:10:59 2014 +0200
@@ -354,7 +354,9 @@
       while (parentFrame.name !== '') {
         parentFrame = parentFrame.parent;
       }
-      parentFrame.activeFrame = iFrame;
+      if (parentFrame.parent) {
+        parentFrame.parent.activeFrame = iFrame;
+      }
     }
   }
 });

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to