Skip to content
Permalink
Browse files
[FIXED JENKINS-38961] Add an escape handler to hide the dialog
  • Loading branch information
stephenc committed Oct 18, 2016
1 parent 168ed7a commit 9f597e3ac05621df9e25078a0692aa2715965ebc
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/main/resources/lib/credentials/select/select.js
@@ -34,7 +34,14 @@ window.credentials.init = function () {
draggable: true,
zindex: 1000,
modal: true,
visible: false
visible: false,
keylisteners: [
new YAHOO.util.KeyListener(document, {keys:27}, {
fn:(function() {window.credentials.dialog.hide();}),
scope:document,
correctScope:false
})
]
});
window.credentials.dialog.render();
}

0 comments on commit 9f597e3

Please sign in to comment.