Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029187Retail ModulesWeb POSpublic2015-03-09 08:432016-03-30 14:37
guilleaer 
guilleaer 
normalminoralways
scheduledopen 
5
 
 
No
0029187: MobileCore: Multiple levels of popups are not being managed properly causing Z-INDEX issues
Using some custom modules which opens a popup when other popup is already shown, the second popup is shown behind the first one.

In our code we arre assuming that just one popup will be opened at the same time, but we can have several popups at the same time.
1. Create a popup with a button
2. From this popup add a button which shows a confirmation popup

sometimes, the second popup is shown behind the first one
Manage properly opened popups using an array.

Ensure that the Z-INDEX of a new popup is greater than the Z_INDEX of the previous opened one.

To avoid API change I have created a new var [OB.MobileApp.view.openedPopups] which manage opened popups. The existent var always store the last opened popup [OB.MobileApp.view.openedPopup].
No tags attached.
Issue History
2015-03-09 08:43guilleaerNew Issue
2015-03-09 08:43guilleaerAssigned To => guilleaer
2015-03-09 08:43guilleaerTriggers an Emergency Pack => No
2015-03-09 08:46hgbotCheckin
2015-03-09 08:46hgbotNote Added: 0075290
2015-03-09 08:46hgbotStatusnew => resolved
2015-03-09 08:46hgbotResolutionopen => fixed
2015-03-09 08:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/935124a4331135f1cfe49a8f43595599fe5446a6 [^]
2015-03-09 09:50hgbotCheckin
2015-03-09 09:50hgbotNote Added: 0075295
2015-03-09 09:51OrekariaStatusresolved => new
2015-03-09 09:51OrekariaResolutionfixed => open
2015-03-30 20:12marvintmTarget VersionRR15Q2 => RR15Q3
2015-06-26 15:38marvintmTarget VersionRR15Q3 => RR15Q4
2015-09-29 14:41OrekariaTarget VersionRR15Q4 => RR16Q1
2015-12-22 18:47OrekariaTarget VersionRR16Q1 => RR16Q2
2015-12-22 18:47OrekariaStatusnew => scheduled
2016-03-30 14:37OrekariaTarget VersionRR16Q2 =>

Notes
(0075290)
hgbot   
2015-03-09 08:46   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 935124a4331135f1cfe49a8f43595599fe5446a6
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Mar 09 13:15:26 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/935124a4331135f1cfe49a8f43595599fe5446a6 [^]

Fixed issue 29187: Multiple levels of popups are now working fine

Ensure that the Z-INDEX of a new popup is greater than the Z_INDEX of the previous opened one.
To avoid API change I have created a new var [OB.MobileApp.view.openedPopups] which manages opened popups. The previous var [OB.MobileApp.view.openedPopup] always store the last opened popup.

---
M web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
---
(0075295)
hgbot   
2015-03-09 09:50   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 4c947bec8f6d0108426ebe503201460b7d762fd7
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Mar 09 09:04:27 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4c947bec8f6d0108426ebe503201460b7d762fd7 [^]

Backed out issue 29187, changeset: 935124a43311. Breaking WebPOS

---
M web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
---