Compare commits

..

No commits in common. "988ecd11d2d1faa7a773c3cd596e1d3d2e93af0c" and "d3913d786c47eb71ba2bd038d30c263446d9ade0" have entirely different histories.

View File

@ -44,11 +44,11 @@
<!-- <td>{{ loop.index }}</td> -->
<td>{{ account.username }}</td>
<td>{{ account.stream }}</td>
<td><a href="{{ account.streamURL }}" target="_blank">{{ account.streamURL }}</a> ({{ account.maxConnections }})</td>
<td><a href="{{ account.streamURL }}" target="_blank">{{ account.streamURL }}</a></td>
<td>{{ account.expiaryDate_rendered }}</td>
<td>{{ account.password }}</td>
<td>
<button type="button" class="btn btn-info btn-validate" data-username="{{ account.username }}" data-password="{{ account.password }}" data-stream="{{ account.stream }}" data-expiry-date="{{ account.expiaryDate }}" data-max-connections="{{ account.maxConnections }}" 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="button-text">Validate</span>
</button>
@ -101,8 +101,6 @@
var username = button.data('username');
var password = button.data('password');
var stream = button.data('stream');
var expiryDate = button.data('expiry-date');
var maxConnections = button.data('max-connections');
spinner.show();
buttonText.hide();
@ -115,14 +113,9 @@
data: JSON.stringify({
username: username,
password: password,
stream: stream,
expiry_date: expiryDate,
max_connections: maxConnections
stream: stream
}),
success: function(response) {
if (response.message === 'Account is valid and updated') {
location.reload();
} else {
spinner.hide();
buttonText.show();
button.prop('disabled', false);
@ -132,7 +125,6 @@
button.removeClass('btn-success').addClass('btn-info');
buttonText.text('Validate');
}, 3000);
}
},
error: function(xhr, status, error) {
spinner.hide();