Arc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
3 deletions
-
LNbits/static/app.js
|
|
@ -248,9 +248,9 @@ function scanQRsend() { |
|
|
|
'<br/>Memo: ' + |
|
|
|
outmemo + |
|
|
|
'</h3>' + |
|
|
|
"<h4 style='word-wrap: break-word;'>" + |
|
|
|
JSON.stringify(code.data) + |
|
|
|
'</h4>' + |
|
|
|
"<div class='input-group input-group-sm'><input type='text' id='invoiceinput' class='form-control' value='" + |
|
|
|
JSON.stringify(code.data) + |
|
|
|
"'><span class='input-group-btn'><button class='btn btn-info btn-flat' type='button' onclick='copyfunc()'>Copy</button></span></div></br/>" + |
|
|
|
"<button type='submit' class='btn btn-primary' onclick='sendfunds(" + |
|
|
|
JSON.stringify(code.data) + |
|
|
|
")'>Send funds</button>" + |
|
|
@ -266,6 +266,14 @@ function scanQRsend() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function copyfunc(){ |
|
|
|
var copyText = document.getElementById("invoiceinput"); |
|
|
|
copyText.select(); |
|
|
|
copyText.setSelectionRange(0, 99999); |
|
|
|
document.execCommand("copy"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function deletewallet() { |
|
|
|
var url = 'deletewallet?wal=' + wallet.id + '&usr=' + user |
|
|
|
window.location.href = url |
|
|
|