Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0036565 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | major | always | 2017-02-03 10:11 | 2017-08-02 16:06 | |||
Reporter | jonibc | View Status | public | |||||
Assigned To | mario_castello | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | abb7a5c9174d | ||||
Projection | none | ETA | none | Target Version | RR17Q1.3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | migueldejuana | |||||||
OBNetwork customer | OBPS | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0036565: [SERQA 2408] Focus remains in previous window. | |||||||
Description | Focus remains in the previous window, when a modal is raised over another modal, if the user press the key "ESC", both windows hides. We tried a workaround to avoid lost the focus changing it to the focuskeeper, but 'Use External Input' flag is set to N, it is impossible to get the focus back for any input field. | |||||||
Steps To Reproduce | Modify the file (Module: POSTerminal File: web/org/openbrabvo.retail.posterminal/js/pointofsale/view/subwindows/customers/components/sharedcomponents.js) or edit the javascript directly in Chrome Developer Tools and add the following code to raise the receipt properties modal dialog on blur event in customer creation window: blur: function () { OB.MobileApp.view.waterfall('onShowPopup', { popup: 'receiptPropertiesDialog' }); } Also if we add the following code, we can check that when we raise a popup the problem can not be reproduced: blur: function () { OB.UTIL.showConfirmation.display('Test no fail'); } | |||||||
Proposed Solution | In executeOnShow event of the modal add the following code to change the focus: WARNING: This solution does not work if 'Use External Input' flag is set to N. setTimeout(function () { var k = document.getElementById('_focusKeeper'); k.focus(); }, 20); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0098297) hgbot (developer) 2017-08-01 12:01 |
Repository: retail/backports/3.0RR17Q1.3/org.openbravo.mobile.core Changeset: abb7a5c9174dbcee3ad9de2459c7400bcde787f5 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Tue Aug 01 11:58:35 2017 +0200 URL: http://code.openbravo.com/retail/backports/3.0RR17Q1.3/org.openbravo.mobile.core/rev/abb7a5c9174dbcee3ad9de2459c7400bcde787f5 [^] Fixed issue 36565. [SERQA 2408] Focus remains in previous window. - Set the focus of one element when open a popup. - By default selected the element that is marked as isDefaultAction. --- M web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js --- |
(0098347) migueldejuana (viewer) 2017-08-02 16:06 |
tested and reviewed |
![]() |
|||
Date Modified | Username | Field | Change |
2017-08-01 11:56 | marvintm | Type | defect => backport |
2017-08-01 11:56 | marvintm | Target Version | => RR17Q1.3 |
2017-08-01 12:01 | hgbot | Checkin | |
2017-08-01 12:01 | hgbot | Note Added: 0098297 | |
2017-08-01 12:01 | hgbot | Status | scheduled => resolved |
2017-08-01 12:01 | hgbot | Resolution | open => fixed |
2017-08-01 12:01 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/68def009463444e2b8494963b7df2a93d0b8992e [^] => http://code.openbravo.com/retail/backports/3.0RR17Q1.3/org.openbravo.mobile.core/rev/abb7a5c9174dbcee3ad9de2459c7400bcde787f5 [^] |
2017-08-02 16:06 | migueldejuana | Review Assigned To | marvintm => migueldejuana |
2017-08-02 16:06 | migueldejuana | Note Added: 0098347 | |
2017-08-02 16:06 | migueldejuana | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |