details: https://code.openbravo.com/erp/devel/pi/rev/05ba1ff75290
changeset: 14966:05ba1ff75290
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Wed Dec 28 21:54:06 2011 +0100
summary: Fixed issue 17636: now hidden menu frame doesn't get the focus
automatically
diffstat:
web/js/utils.js | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diffs (31 lines):
diff -r 627fabbba30b -r 05ba1ff75290 web/js/utils.js
--- a/web/js/utils.js Wed Dec 28 17:33:11 2011 +0100
+++ b/web/js/utils.js Wed Dec 28 21:54:06 2011 +0100
@@ -1656,14 +1656,19 @@
* Put the focus on the Menu frame
*/
function putFocusOnMenu() {
- if (parent && parent.appFrame && parent.appFrame.selectedArea == 'tabs') {
- parent.appFrame.swichSelectedArea();
- }
- if (parent && parent.frameMenu) {
- parent.frameMenu.focus();
- }
-
- return true;
+ if (isWindowInMDIPage) {
+ // In a classic window opened in OB 3.0, it avoids the focus go to the
hidden menu frame
+ // Solves issue https://issues.openbravo.com/view.php?id=17636
+ return false;
+ } else {
+ if (parent && parent.appFrame && parent.appFrame.selectedArea == 'tabs') {
+ parent.appFrame.swichSelectedArea();
+ }
+ if (parent && parent.frameMenu) {
+ parent.frameMenu.focus();
+ }
+ return true;
+ }
}
/**
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits