pull/87/merge
Peter 'Pita' Martischka 2011-08-17 19:36:56 +01:00
commit c7f3b3d9ec
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ var padeditbar = (function()
{
var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/"));
var readonlyLink = basePath + "/ro/" + clientVars.readOnlyId;
$('#readonlyImage').attr("src","https://chart.googleapis.com/chart?chs=200x200&cht=qr&chld=H|0&chl=" + readonlyLink);
$('#readonlyInput').val(readonlyLink);
self.toogleDropDown("readonly");
$('#readonlyInput').focus().select();

View File

@ -239,6 +239,7 @@ Embed code:<input id="embedinput" type="text" value="">
<div id="readonly">
<div id="readonlyUrl">
Use this link to share a read-only version of your pad:<input id="readonlyInput" type="text" value="">
<img id="readonlyImage" src="" alt="" style="margin: 10px 90px">
</div>
</div>