From ce5374ea6b195e2f5283b784d2c3ebd28075235b Mon Sep 17 00:00:00 2001 From: ET-Bent Date: Mon, 17 Oct 2016 00:07:55 +0200 Subject: [PATCH] Fix node view in admin panel --- resources/views/admin/nodes/index.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/admin/nodes/index.blade.php b/resources/views/admin/nodes/index.blade.php index bc0fc2b31..dcfd41629 100644 --- a/resources/views/admin/nodes/index.blade.php +++ b/resources/views/admin/nodes/index.blade.php @@ -75,14 +75,14 @@ $(document).ready(function () { }); function pingNodes() { $('td[data-action="ping"]').each(function(i, element) { - elem = $(this); $.ajax({ type: 'GET', - url: elem.data('location'), + url: $(element).data('location'), + timeout: 5000 }).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 () { - 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'); }); }); }