Skip to content
Snippets Groups Projects
Commit d743dbac authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed closing of link wizard

parent 2f3b5aca
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ var dw_linkwiz = {
dw_linkwiz.$entry = jQuery('#link__wiz_entry');
// attach event handlers
jQuery('#link__wiz_close').click(dw_linkwiz.hide);
jQuery('#link__wiz .ui-dialog-titlebar-close').click(dw_linkwiz.hide);
dw_linkwiz.$entry.keyup(dw_linkwiz.onEntry);
jQuery(dw_linkwiz.result).delegate('a', 'click', dw_linkwiz.onResultClick);
},
......@@ -64,7 +64,7 @@ var dw_linkwiz = {
if(e.keyCode == 37 || e.keyCode == 39){ //left/right
return true; //ignore
}
if(e.keyCode == 27){
if(e.keyCode == 27){ //Escape
dw_linkwiz.hide();
e.preventDefault();
e.stopPropagation();
......
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