X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=eccdb83658e890ac479d6f9e7e3f84c39120ecd5;hb=d4ca53e333b848352644ab96ae0508a19111366c;hp=148deaddf0d1132b7dee370599c221fc4ed97f41;hpb=57020a5ecb4d304b4ecc9e299d51810eafffc5de;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 148deaddf0..eccdb83658 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -10412,6 +10412,7 @@ Roo.MessageBox = function(){ } } }); + dlg.on("hide", handleHide); mask = dlg.mask; dlg.addKeyListener(27, handleEsc); @@ -10655,6 +10656,7 @@ Roo.Msg.show({ d.animateTarget = null; d.show(options.animEl); } + dlg.toFront(); return this; }, @@ -27747,14 +27749,16 @@ Roo.form.HtmlEditor.ToolbarStandard.prototype = { createLink : function(){ //Roo.log("create link?"); var ec = this.editorcore; - Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(btn, url) { - if (btn != 'ok') { - return; - } - if(url && url != 'http:/'+'/'){ - ec.relayCmd('createlink', url); - } - }); + (function() { + Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(btn, url) { + if (btn != 'ok') { + return; + } + if(url && url != 'http:/'+'/'){ + ec.relayCmd('createlink', url); + } + }); + }).defer(100, this); // we have to defer this , otherwise the mouse click gives focus to the main window. },