Skip to content

Commit ce5374e

Browse files
author
ET-Bent
authored
Fix node view in admin panel
1 parent 073ef63 commit ce5374e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/views/admin/nodes/index.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@
7575
});
7676
function pingNodes() {
7777
$('td[data-action="ping"]').each(function(i, element) {
78-
elem = $(this);
7978
$.ajax({
8079
type: 'GET',
81-
url: elem.data('location'),
80+
url: $(element).data('location'),
81+
timeout: 5000
8282
}).done(function (data) {
83-
elem.removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
83+
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heartbeat faa-pulse animated').css('color', '#50af51');
8484
}).fail(function () {
85-
elem.removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heart-o').css('color', '#d9534f');
85+
$(element).removeClass('text-muted').find('i').removeClass().addClass('fa fa-fw fa-heart-o').css('color', '#d9534f');
8686
});
8787
});
8888
}

0 commit comments

Comments
 (0)