From 1ab238a4d1d401e97024f51027de14d5fce87116 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 19 Dec 2022 18:41:59 -0600 Subject: [PATCH] Fix port speed setting feedback (#14743) --- app/Http/Controllers/Table/EditPortsController.php | 2 +- includes/html/pages/device/edit/ports.inc.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/Table/EditPortsController.php b/app/Http/Controllers/Table/EditPortsController.php index 9108acf2c6..dc559a35da 100644 --- a/app/Http/Controllers/Table/EditPortsController.php +++ b/app/Http/Controllers/Table/EditPortsController.php @@ -80,7 +80,7 @@ class EditPortsController extends TableController ', 'port_tune' => '', 'ifAlias' => '
', - 'ifSpeed' => '
', + 'ifSpeed' => '
', 'portGroup' => '
', ]; } diff --git a/includes/html/pages/device/edit/ports.inc.php b/includes/html/pages/device/edit/ports.inc.php index ac6eaa630b..24283e6208 100644 --- a/includes/html/pages/device/edit/ports.inc.php +++ b/includes/html/pages/device/edit/ports.inc.php @@ -81,29 +81,29 @@ success: function (data) { if (data.status == 'ok') { $this.closest('.form-group').addClass('has-success'); - $this.next().addClass('fa-check'); + $this.next().children().first().addClass('fa-check'); $this.val(speed); setTimeout(function(){ $this.closest('.form-group').removeClass('has-success'); - $this.next().removeClass('fa-check'); + $this.next().children().first().removeClass('fa-check'); }, 2000); } else if (data.status == 'na') { } else { $(this).closest('.form-group').addClass('has-error'); - $this.next().addClass('fa-times'); + $this.next().children().first().addClass('fa-times'); setTimeout(function(){ $this.closest('.form-group').removeClass('has-error'); - $this.next().removeClass('fa-times'); + $this.next().children().first().removeClass('fa-times'); }, 2000); } }, error: function () { $(this).closest('.form-group').addClass('has-error'); - $this.next().addClass('fa-times'); + $this.next().children().first().addClass('fa-times'); setTimeout(function(){ $this.closest('.form-group').removeClass('has-error'); - $this.next().removeClass('fa-times'); + $this.next().children().first().removeClass('fa-times'); }, 2000); } });