Merge branch 'patch-2' of https://github.com/0ip/etherpad-lite
This commit is contained in:
commit
c7f3b3d9ec
|
@ -114,6 +114,7 @@ var padeditbar = (function()
|
||||||
{
|
{
|
||||||
var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/"));
|
var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/"));
|
||||||
var readonlyLink = basePath + "/ro/" + clientVars.readOnlyId;
|
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);
|
$('#readonlyInput').val(readonlyLink);
|
||||||
self.toogleDropDown("readonly");
|
self.toogleDropDown("readonly");
|
||||||
$('#readonlyInput').focus().select();
|
$('#readonlyInput').focus().select();
|
||||||
|
|
|
@ -239,6 +239,7 @@ Embed code:<input id="embedinput" type="text" value="">
|
||||||
<div id="readonly">
|
<div id="readonly">
|
||||||
<div id="readonlyUrl">
|
<div id="readonlyUrl">
|
||||||
Use this link to share a read-only version of your pad:<input id="readonlyInput" type="text" value="">
|
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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue