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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035152
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-02-03 10:112017-08-01 11:56
ReporterjonibcView Statuspublic 
Assigned Tomario_castello 
PriorityhighResolutionfixedFixed in VersionRR17Q2
StatusclosedFix in branchFixed in SCM revision68def0094634
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035152: [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 ]
depends on backport 0036565RR17Q1.3 closedmario_castello [SERQA 2408] Focus remains in previous window. 

-  Notes
(0094108)
jonibc (developer)
2017-02-07 08:49

Updated with error in proposed solution.
(0094371)
hgbot (developer)
2017-02-15 17:38

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 68def009463444e2b8494963b7df2a93d0b8992e
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Thu Feb 09 10:35:49 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/68def009463444e2b8494963b7df2a93d0b8992e [^]

Fixed issue 0035152: [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
---

- Issue History
Date Modified Username Field Change
2017-02-03 10:11 jonibc New Issue
2017-02-03 10:11 jonibc Assigned To => Retail
2017-02-03 10:11 jonibc Resolution time => 1487286000
2017-02-03 10:11 jonibc Triggers an Emergency Pack => No
2017-02-07 08:49 jonibc Note Added: 0094108
2017-02-07 08:49 jonibc Description Updated View Revisions
2017-02-07 08:49 jonibc Proposed Solution updated
2017-02-07 08:55 jonibc Issue Monitored: jonibc
2017-02-07 09:26 jonibc Summary [STORE SERVER / SERQA 2408] Focus remains in previous window. => [SERQA 2408] Focus remains in previous window.
2017-02-08 15:16 mario_castello Assigned To Retail => mario_castello
2017-02-08 15:17 mario_castello Status new => acknowledged
2017-02-08 15:23 mario_castello Status acknowledged => scheduled
2017-02-15 17:38 hgbot Checkin
2017-02-15 17:38 hgbot Note Added: 0094371
2017-02-15 17:38 hgbot Status scheduled => resolved
2017-02-15 17:38 hgbot Resolution open => fixed
2017-02-15 17:38 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/68def009463444e2b8494963b7df2a93d0b8992e [^]
2017-02-20 09:41 marvintm Review Assigned To => marvintm
2017-02-20 09:41 marvintm Status resolved => closed
2017-02-20 09:41 marvintm Fixed in Version => RR17Q2
2017-08-01 11:56 marvintm Status closed => new
2017-08-01 11:56 marvintm Resolution fixed => open
2017-08-01 11:56 marvintm Fixed in Version RR17Q2 =>
2017-08-01 11:56 marvintm Status new => scheduled
2017-08-01 11:56 marvintm Status scheduled => resolved
2017-08-01 11:56 marvintm Fixed in Version => RR17Q2
2017-08-01 11:56 marvintm Resolution open => fixed
2017-08-01 11:56 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker