Skip to content
Snippets Groups Projects
Commit d98ab76d authored by slm4996's avatar slm4996
Browse files

Hide close/hide dialog when esc key is pressed

parent e90cd8f2
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,13 @@ $(document).ready(function(){
return false;
});
$(document).keydown(function(e) {
if (e.keyCode == 27) {
$('div.dialog').hide();
$('#overlay').hide();
}
});
/* advanced search */
$('.dialog#advanced-search').css({
top : ($(window).height() / 6),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment