QR code support (js)

pull/88/head
Robin Buse 2011-08-16 23:34:05 +03:00
parent 6d47a00f29
commit 47a16ddbe2
1 changed files with 1 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 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();