From 7835cc34c847ee6f723adbced3c9c86f73c036f1 Mon Sep 17 00:00:00 2001 From: Tim Bishop Date: Wed, 31 Oct 2018 18:13:08 +0000 Subject: [PATCH] Insert audited items to the top of the list. (#6376) When doing a large number of items they soon disappear off the bottom of the screen. It's handy to be able to check the result as it's happening so adding them to the top of the list keeps the most recent items visible. Move the "Processing..." spinner to the header so it stays at the top. --- resources/views/hardware/quickscan.blade.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.php index 620b4aad0..4e5fc31b5 100644 --- a/resources/views/hardware/quickscan.blade.php +++ b/resources/views/hardware/quickscan.blade.php @@ -103,18 +103,18 @@ - - - - - - - + + + + + + +
{{ trans('general.asset_tag') }}{{ trans('general.bulkaudit_status') }}
{{ trans('general.asset_tag') }}{{ trans('general.bulkaudit_status') }}
@@ -150,7 +150,7 @@ data : formData, success : function (data) { if (data.status == 'success') { - $('#audited tbody').append("" + data.payload.asset_tag + "" + data.messages + ""); + $('#audited tbody').prepend("" + data.payload.asset_tag + "" + data.messages + ""); incrementOnSuccess(); } else { handleAuditFail(data); @@ -180,7 +180,7 @@ } else { var messages = ''; } - $('#audited tbody').append("" + asset_tag + "" + messages + ""); + $('#audited tbody').prepend("" + asset_tag + "" + messages + ""); } function incrementOnSuccess() {