fix validate button on mobiles

This commit is contained in:
Karl 2025-07-15 16:08:16 +01:00
parent ee0d216045
commit 0e9d8f2a9f

View File

@ -48,7 +48,7 @@
<td>{{ account.expiaryDate_rendered }}</td> <td>{{ account.expiaryDate_rendered }}</td>
<td>{{ account.password }}</td> <td>{{ account.password }}</td>
<td> <td>
<button class="btn btn-info btn-validate" data-username="{{ account.username }}" data-password="{{ account.password }}" data-stream="{{ account.stream }}" style="margin-right: 5px;"> <button type="button" class="btn btn-info btn-validate" data-username="{{ account.username }}" data-password="{{ account.password }}" data-stream="{{ account.stream }}" style="margin-right: 5px;">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" style="display: none;"></span> <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" style="display: none;"></span>
<span class="button-text">Validate</span> <span class="button-text">Validate</span>
</button> </button>
@ -94,7 +94,7 @@
}); });
}); });
$('.btn-validate').on('click', function() { $('#accountsTable tbody').on('click', '.btn-validate', function() {
var button = $(this); var button = $(this);
var spinner = button.find('.spinner-border'); var spinner = button.find('.spinner-border');
var buttonText = button.find('.button-text'); var buttonText = button.find('.button-text');