details: https://code.openbravo.com/erp/devel/pi/rev/4c3694e1e6a9
changeset: 19654:4c3694e1e6a9
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Tue Feb 12 13:02:37 2013 +0100
summary: Fixes issue 22903: Focus is not lost when changing images in Client
window
When the Upload button of the popup was clicked the processEvent function of
ob-eventthandler was executed. This function, among other things, tries to set
as active view the view that owns the button. The problem was that the view
being set as active was not the pop up, but the header tab of the window. This
has been fixed by preventing this from happening where the window where the
event originates is a popup.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-eventhandler.js
| 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 66d0835d6c60 -r 4c3694e1e6a9
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-eventhandler.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-eventhandler.js
Tue Feb 12 12:49:06 2013 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-eventhandler.js
Tue Feb 12 13:02:37 2013 +0100
@@ -106,6 +106,10 @@
target = null;
} else if (!target.parentElement && target.grid) {
target = target.grid;
+ } else if (target.getClassName && target.getClassName() === 'OBPopup')
{
+ // If it is a popup window, do not bubble up to the header view
+ // See issue https://issues.openbravo.com/view.php?id=22903
+ return true;
} else {
target = target.parentElement;
}
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits