mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Fix node view in admin panel
This commit is contained in:
parent
073ef638b8
commit
ce5374ea6b
@ -75,14 +75,14 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
function pingNodes() {
|
function pingNodes() {
|
||||||
$('td[data-action="ping"]').each(function(i, element) {
|
$('td[data-action="ping"]').each(function(i, element) {
|
||||||
elem = $(this);
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: elem.data('location'),
|
url: $(element).data('location'),
|
||||||
|
timeout: 5000
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
elem.removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
|
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
elem.removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heart-o').css('color', '#d9534f');
|
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heart-o').css('color', '#d9534f');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user