commit | 33c3d0511a81a5fd6deccff040f235f7a7454a45 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Wed Mar 06 14:41:13 2019 -0800 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Mar 11 17:38:55 2019 -0700 |
tree | 20ccd15c77ccf470ab650b57eabba11913d2d1c8 | |
parent | 9e0dfb6af509ec7adeec815037886a8c2f66b824 [diff] |
Close popup window when leaving a page Change-Id: I70cc9033edd971fc4fefd1416448c22814f91478
diff --git a/src/main/resources/static/find-owners.js b/src/main/resources/static/find-owners.js index c773aa9..db4ca99 100644 --- a/src/main/resources/static/find-owners.js +++ b/src/main/resources/static/find-owners.js
@@ -597,4 +597,6 @@ self.on('submitchange', onSubmit); // Clicks outside the pop up window should close the window. document.body.addEventListener('click', onClick); + // Leaving page should close the window. + window.addEventListener('popstate', hideFindOwnersPage); });