select the embed code when it drops down

This commit is contained in:
Peter 'Pita' Martischka 2011-07-08 15:37:57 +01:00
parent cbbb0a4ed1
commit 7915390b83
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ var padeditbar = (function()
var padurl = document.location;
$('#embed').html('<div id="embedcode">Embed code:<input id="embedinput" type="text" value="<iframe src=&quot;' + padurl + '&quot; width=500 height=400>"</iframe></div>');
self.toogleDropDown("embed");
$('#embedinput').focus().select();
}
else if (cmd == 'save')
{