Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036565
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2017-02-03 10:112017-08-02 16:06
ReporterjonibcView Statuspublic 
Assigned Tomario_castello 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionabb7a5c9174d
ProjectionnoneETAnoneTarget VersionRR17Q1.3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036565: [SERQA 2408] Focus remains in previous window.

DescriptionFocus 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 ReproduceModify 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 SolutionIn 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);
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0035152 closedmario_castello [SERQA 2408] Focus remains in previous window. 

-  Notes
(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 (developer)
2017-08-02 16:06

tested and reviewed

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker