mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-06 23:04:26 +01:00
Fix JS error
This commit is contained in:
@@ -225,11 +225,12 @@
|
||||
<script>
|
||||
window.coinName = "@Model.Network.DisplayName.ToLowerInvariant()";
|
||||
$(function () {
|
||||
initCameraScanningApp("Scan wallet QR", function(data){
|
||||
$("#WalletFileContent").val(data);
|
||||
$("#qr-import-form").submit();
|
||||
},"scanqrModal");
|
||||
if (typeof(initCameraScanningApp) === "function") {
|
||||
initCameraScanningApp("Scan wallet QR", function(data){
|
||||
$("#WalletFileContent").val(data);
|
||||
$("#qr-import-form").submit();
|
||||
},"scanqrModal");
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
}
|
||||
|
||||
@@ -86,17 +86,17 @@
|
||||
<script src="~/vendor/highlightjs/highlight.min.js" asp-append-version="true"></script>
|
||||
<bundle name="wwwroot/bundles/camera-bundle.min.js"></bundle>
|
||||
<link href="~/vendor/vue-qrcode-reader/vue-qrcode-reader.css" rel="stylesheet" asp-append-version="true"/>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
<script>
|
||||
|
||||
$(function (){
|
||||
initQRShow("Scan PSBT", @Json.Serialize(Model.PSBTHex), "scan-qr-modal");
|
||||
|
||||
initCameraScanningApp("Scan PSBT", function (data){
|
||||
$("textarea[name=PSBT]").val(data);
|
||||
$("#Decode").click();
|
||||
}, "scanModal")
|
||||
});
|
||||
</script>
|
||||
hljs.initHighlightingOnLoad();
|
||||
|
||||
$(function (){
|
||||
initQRShow("Scan PSBT", @Json.Serialize(Model.PSBTHex), "scan-qr-modal");
|
||||
if (typeof(initCameraScanningApp) === "function") {
|
||||
initCameraScanningApp("Scan PSBT", function (data){
|
||||
$("textarea[name=PSBT]").val(data);
|
||||
$("#Decode").click();
|
||||
}, "scanModal");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
$(function () {
|
||||
initCameraScanningApp("Scan address/ payment link", function(data){
|
||||
$("#BIP21").val(data);
|
||||
$("form").submit();
|
||||
},"scanModal");
|
||||
if (typeof(initCameraScanningApp) === "function") {
|
||||
initCameraScanningApp("Scan address/ payment link", function(data) {
|
||||
$("#BIP21").val(data);
|
||||
$("form").submit();
|
||||
},"scanModal");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user