diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-06-04 16:24:50 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-30 12:27:04 +0200 |
commit | c2c1131a7a3745a3bdcf9cea8a5c8203e3ae555b (patch) | |
tree | c1d87639acf4ddaaa504248f0544fe3b871110c1 /install | |
parent | 9dbeeb7556929e76d652579533d0972479c0dc98 (diff) | |
download | freeipa-c2c1131a7a3745a3bdcf9cea8a5c8203e3ae555b.tar.gz freeipa-c2c1131a7a3745a3bdcf9cea8a5c8203e3ae555b.tar.xz freeipa-c2c1131a7a3745a3bdcf9cea8a5c8203e3ae555b.zip |
webui: fix confirmation mixin origin check
Current check is not enough.
https://fedorahosted.org/freeipa/ticket/4098
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/src/freeipa/dialog.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js index 7e72c4e60..c593787fe 100644 --- a/install/ui/src/freeipa/dialog.js +++ b/install/ui/src/freeipa/dialog.js @@ -1468,7 +1468,8 @@ IPA.confirm_mixin = function() { key = event.keyCode, ignore = ir.src_elements.indexOf(t.tagName.toLowerCase()) > -1 || ir.src_types.indexOf(t.type) > -1 || - !this.keysdown[key]; + !this.keysdown[key] || + this.last_origin !== t; delete this.keysdown[key]; return ignore; @@ -1512,6 +1513,7 @@ IPA.confirm_mixin = function() { this.on_cancel(); } delete this.keysdown[event.keyCode]; + delete this.last_origin; }, /** @@ -1527,6 +1529,7 @@ IPA.confirm_mixin = function() { * @param {Event} event */ _on_key_down: function(event) { + this.last_origin = event.target; this.keysdown[event.keyCode] = true; } }, |