Add closePopup function
This commit is contained in:
parent
eb66ab3fdd
commit
0f4034854c
1 changed files with 8 additions and 20 deletions
|
@ -46,29 +46,17 @@ WA.onEnterZone(zoneSchoolName, () => {
|
||||||
}]);
|
}]);
|
||||||
})
|
})
|
||||||
|
|
||||||
WA.onLeaveZone(zoneSchoolName, () => {
|
WA.onLeaveZone(zoneSchoolName, closePopUp)
|
||||||
if (currentPopup !== undefined) {
|
|
||||||
currentPopup.close();
|
|
||||||
currentPopup = undefined;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
WA.onLeaveZone(zoneTCMName, () => {
|
WA.onLeaveZone(zoneTCMName, closePopUp)
|
||||||
if (currentPopup !== undefined) {
|
|
||||||
currentPopup.close();
|
|
||||||
currentPopup = undefined;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
WA.onLeaveZone(zoneEventName, () => {
|
WA.onLeaveZone(zoneEventName, closePopUp)
|
||||||
|
|
||||||
|
WA.onLeaveZone(zoneOfficeName, closePopUp)
|
||||||
|
|
||||||
|
function closePopUp(){
|
||||||
if (currentPopup !== undefined) {
|
if (currentPopup !== undefined) {
|
||||||
currentPopup.close();
|
currentPopup.close();
|
||||||
currentPopup = undefined;
|
currentPopup = undefined;
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
WA.onLeaveZone(zoneOfficeName, () => {
|
|
||||||
if (currentPopup !== undefined) {
|
|
||||||
currentPopup.close();
|
|
||||||
currentPopup = undefined;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue