diff --git a/lib/Froxlor/Ajax/GlobalSearch.php b/lib/Froxlor/Ajax/GlobalSearch.php index 1a79f46d..ef7e4c7e 100644 --- a/lib/Froxlor/Ajax/GlobalSearch.php +++ b/lib/Froxlor/Ajax/GlobalSearch.php @@ -187,7 +187,7 @@ class GlobalSearch 'result_format' => [ 'title' => ['self', 'getFieldFromResult'], 'title_args' => 'name', - 'href' => 'admin_plans.php?page=overview&action=edit&id=' + 'href' => 'admin_plans.php?page=overview&searchfield=id&searchtext=' ] ], // PHP configs diff --git a/lib/tablelisting/admin/tablelisting.phpconfigs.php b/lib/tablelisting/admin/tablelisting.phpconfigs.php index a83f27e0..715776e8 100644 --- a/lib/tablelisting/admin/tablelisting.phpconfigs.php +++ b/lib/tablelisting/admin/tablelisting.phpconfigs.php @@ -34,6 +34,10 @@ return [ 'icon' => 'fa-brands fa-php', 'self_overview' => ['section' => 'phpsettings', 'page' => 'overview'], 'columns' => [ + 'c.id' => [ + 'label' => 'ID', + 'field' => 'id', + ], 'c.description' => [ 'label' => lng('admin.phpsettings.description'), 'field' => 'description', diff --git a/lib/tablelisting/admin/tablelisting.plans.php b/lib/tablelisting/admin/tablelisting.plans.php index f898e0be..f579b559 100644 --- a/lib/tablelisting/admin/tablelisting.plans.php +++ b/lib/tablelisting/admin/tablelisting.plans.php @@ -31,6 +31,10 @@ return [ 'title' => lng('admin.plans.plans'), 'icon' => 'fa-solid fa-clipboard-list', 'columns' => [ + 'p.id' => [ + 'label' => 'ID', + 'field' => 'id', + ], 'p.name' => [ 'label' => lng('admin.plans.name'), 'field' => 'name', diff --git a/templates/Froxlor/src/js/components/search.js b/templates/Froxlor/src/js/components/search.js index 92115aab..18a86029 100644 --- a/templates/Froxlor/src/js/components/search.js +++ b/templates/Froxlor/src/js/components/search.js @@ -10,12 +10,14 @@ $(function() { let dropdown = $('#search .search-results'); // Hide search if query is empty if (!query.length) { - dropdown.hide().html(''); + dropdown.html(''); + dropdown.parent().hide(); return; } // Show notification for short search query if (query.length && query.length < 3) { - dropdown.show().html('