Update app.js
Added copy function
This commit is contained in:
+11
-3
@@ -248,9 +248,9 @@ function scanQRsend() {
|
|||||||
'<br/>Memo: ' +
|
'<br/>Memo: ' +
|
||||||
outmemo +
|
outmemo +
|
||||||
'</h3>' +
|
'</h3>' +
|
||||||
"<h4 style='word-wrap: break-word;'>" +
|
"<div class='input-group input-group-sm'><input type='text' id='invoiceinput' class='form-control' value='" +
|
||||||
JSON.stringify(code.data) +
|
JSON.stringify(code.data) +
|
||||||
'</h4>' +
|
"'><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(" +
|
"<button type='submit' class='btn btn-primary' onclick='sendfunds(" +
|
||||||
JSON.stringify(code.data) +
|
JSON.stringify(code.data) +
|
||||||
")'>Send funds</button>" +
|
")'>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() {
|
function deletewallet() {
|
||||||
var url = 'deletewallet?wal=' + wallet.id + '&usr=' + user
|
var url = 'deletewallet?wal=' + wallet.id + '&usr=' + user
|
||||||
window.location.href = url
|
window.location.href = url
|
||||||
|
|||||||
Reference in New Issue
Block a user