mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-06 18:02:38 +02:00
Update app.js
This commit is contained in:
@@ -53,6 +53,8 @@ function getAjax(url, thekey, success) {
|
|||||||
return xhr
|
return xhr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function sendfundsinput() {
|
function sendfundsinput() {
|
||||||
document.getElementById('sendfunds').innerHTML =
|
document.getElementById('sendfunds').innerHTML =
|
||||||
"<div class='modal fade sends' tabindex='-1' role='dialog' aria-labelledby='myLargeModalLabel' aria-hidden='true'>"+
|
"<div class='modal fade sends' tabindex='-1' role='dialog' aria-labelledby='myLargeModalLabel' aria-hidden='true'>"+
|
||||||
@@ -188,7 +190,7 @@ function sendfunds(invoice) {
|
|||||||
|
|
||||||
document.getElementById('sendfunds2').innerHTML =
|
document.getElementById('sendfunds2').innerHTML =
|
||||||
"<div class='modal-content'></br/></br/>"+
|
"<div class='modal-content'></br/></br/>"+
|
||||||
'<h3><b>Processing...</b></h3><</br/></br/></div> ';
|
'<h3><b>Processing...</b></h3><</br/></br/></br/></div> ';
|
||||||
|
|
||||||
postAjax(
|
postAjax(
|
||||||
'/v1/channels/transactions',
|
'/v1/channels/transactions',
|
||||||
@@ -235,6 +237,7 @@ function scanQRsend() {
|
|||||||
video.play()
|
video.play()
|
||||||
requestAnimationFrame(tick)
|
requestAnimationFrame(tick)
|
||||||
})
|
})
|
||||||
|
|
||||||
function tick() {
|
function tick() {
|
||||||
loadingMessage.innerText = '⌛ Loading video...'
|
loadingMessage.innerText = '⌛ Loading video...'
|
||||||
if (video.readyState === video.HAVE_ENOUGH_DATA) {
|
if (video.readyState === video.HAVE_ENOUGH_DATA) {
|
||||||
@@ -314,6 +317,8 @@ function scanQRsend() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function copyfunc(){
|
function copyfunc(){
|
||||||
var copyText = document.getElementById("invoiceinput");
|
var copyText = document.getElementById("invoiceinput");
|
||||||
copyText.select();
|
copyText.select();
|
||||||
|
Reference in New Issue
Block a user