Skip to content

Commit

Permalink
Merge pull request #69 from jenkinsci/jenkins-38961
Browse files Browse the repository at this point in the history
[FIXED JENKINS-38961] Add an escape handler to hide the dialog
  • Loading branch information
stephenc committed Oct 18, 2016
2 parents 168ed7a + 9f597e3 commit d5172d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/resources/lib/credentials/select/select.js
Expand Up @@ -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();
}
Expand Down

0 comments on commit d5172d3

Please sign in to comment.