mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
added search to admin/plugins
This commit is contained in:
@@ -64,6 +64,14 @@ define('forum/admin/plugins', function() {
|
||||
});
|
||||
});
|
||||
|
||||
$('#plugin-search').on('input propertychange', function() {
|
||||
var term = $(this).val();
|
||||
$('.plugins li').each(function() {
|
||||
var pluginId = $(this).attr('data-plugin-id');
|
||||
$(this).toggleClass('hide', pluginId && pluginId.indexOf(term) === -1);
|
||||
});
|
||||
});
|
||||
|
||||
} else {
|
||||
pluginsList.append('<li><p><i>No plugins found.</i></p></li>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user