commit 21b74cf1b3cea1304b6d109523cef3211a5885fa
parent fd188b2e17621945cad1116276187b10bad64b35
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 2 Nov 2025 14:13:25 +0100
code cleanup
Diffstat:
2 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/assets/js/admin.js b/assets/js/admin.js
@@ -7,17 +7,6 @@
$(document).ready(function() {
- // Auto-generate machine name from label
- $('#label').on('input', function() {
- if ($('#id').length && $('#id').val() === '') {
- var machineName = $(this).val()
- .toLowerCase()
- .replace(/[^a-z0-9]+/g, '_')
- .replace(/^_+|_+$/g, '');
- $('#id').val(machineName);
- }
- });
-
// Validate payment backend URL format
$('input[name="taler_turnstile_payment_backend_url"]').on('blur', function() {
var url = $(this).val().trim();
diff --git a/assets/js/payment-button.js b/assets/js/payment-button.js
@@ -77,7 +77,6 @@
'Accept': 'application/json'
},
success: function(data, textStatus, xhr) {
- // Check if we got 20x (payment completed)
if (xhr.status === 200 || xhr.status === 202) {
console.log('Payment completed! Reloading page...');
window.location.reload();
@@ -96,7 +95,6 @@
}
},
error: function(xhr, textStatus, errorThrown) {
- // Check if this is a 402 Payment Required response
if (xhr.status === 402) {
console.log('Payment still required (402), continuing to poll...');
pollPaymentStatus(paymentUrl, sessionId);
@@ -125,7 +123,6 @@
* Initialize payment button functionality
*/
$(document).ready(function() {
- // Generate QR codes for all payment containers
$('.taler-turnstile-qr-code-container').each(function() {
var $container = $(this);
var paymentUrl = $container.data('payment-url');
@@ -143,7 +140,6 @@
correctLevel: QRCode.CorrectLevel.M
});
- // Start polling for payment status
console.log('Starting payment status polling for: ' + paymentUrl);
pollPaymentStatus(paymentUrl, sessionId);
} else if (!window.QRCode) {