Fix bug where it displayed users when showing embed div

pull/1/head
John McLear 2011-03-26 19:57:17 +00:00
parent b26b1ebf15
commit 750c75e1dc
1 changed files with 3 additions and 1 deletions

View File

@ -105,10 +105,12 @@ var padeditbar = (function(){
// increase the size of the editbar
$('#editbar').animate({height:'72px'});
$('#editorcontainerbox').animate({top:'72px'});
// hide the users
$('#users').hide();
// get the pad url
padurl = document.location;
// change the div contents to include the pad url in an input box
$('#embed').html('<div id="embedcode">Embed code:<input id="embedinput" type="text" value="<iframe src='+padurl+'></iframe>"></div>');
$('#embed').html('<div id="embedcode">Embed code:<input id="embedinput" type="text" value="<iframe src=&quot;'+padurl+'&quot; width=500 height=400>"</iframe>></div>');
$('#embed').show();
}
else