Skip to content

Commit

Permalink
Fixed regression issue: HMI does not wait timeout on button Reset tim…
Browse files Browse the repository at this point in the history
…eout pressed during SubtleAlert processing
  • Loading branch information
ValeriiMalkov committed Oct 8, 2021
1 parent 1fb8b6b commit 3136f82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/view/sdl/SubtleAlertPopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ SDL.SubtleAlertPopUp = Em.ContainerView.create(
reason: '',
message: undefined,
click(event) {
const path = event.path;
for(const pathElement of path) {
if ('className' in pathElement
&& typeof pathElement.className === 'string'
&& pathElement.className.match(/resetTimeoutButton|ResetTimeoutPopUp/)) {
return;
}
}
if (document.getElementById('SubtleAlertPopUp').contains(event.target)){
var buttonsDiv = document.getElementById('subtleAlertSoftButtons');
for (var button of buttonsDiv.childNodes) {
Expand Down

0 comments on commit 3136f82

Please sign in to comment.