Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0036565 | Retail Modules | Web POS | public | 2017-02-03 10:11 | 2017-08-02 16:06 | |||||||
Reporter | jonibc | |||||||||||
Assigned To | mario_castello | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR17Q1.3 | Fixed in Version | ||||||||||
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); | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|