File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
resources/views/admin/nodes Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7575});
7676function 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}
You can’t perform that action at this time.
0 commit comments