Nico Huber | ee52fbc | 2023-06-24 11:52:57 +0000 | [diff] [blame^] | 1 | /* |
2 | * SimpleID | ||||
3 | * | ||||
4 | * Copyright (C) Kelvin Mo 2009 | ||||
5 | * | ||||
6 | * This program is licensed under the GPL. | ||||
7 | * | ||||
8 | * $Id$ | ||||
9 | */ | ||||
10 | |||||
11 | $(document).ready(function() { | ||||
12 | $('input#edit-cancel').click(function() { | ||||
13 | window.close(); | ||||
14 | return false; | ||||
15 | }); | ||||
16 | $(document).keydown(function(e) { | ||||
17 | if (e.which == 27) { // Close the window if user presses Esc | ||||
18 | window.close(); | ||||
19 | return false; | ||||
20 | } | ||||
21 | }); | ||||
22 | }); |