mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
Settings filter v0.3 🔍
This commit is contained in:
@@ -260,6 +260,12 @@ function initListInteractionOptions(selectorId) {
|
||||
// -------------------------------------------------------------------
|
||||
// Function to filter rows based on input text
|
||||
function filterRows(inputText) {
|
||||
|
||||
if(!inputText)
|
||||
{
|
||||
inputText = ''
|
||||
}
|
||||
|
||||
$('.table_row').each(function() {
|
||||
// Check if the row id ends with '__metadata'
|
||||
var idAttribute = $(this).attr('id');
|
||||
@@ -283,6 +289,9 @@ setTimeout(() => {
|
||||
// Event listener for input change
|
||||
$('#settingsSearch').on('input', function() {
|
||||
var searchText = $(this).val();
|
||||
// hide the setting overview dashboard
|
||||
$('#settingsOverview').collapse('hide');
|
||||
|
||||
filterRows(searchText);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user