mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +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 {
|
} else {
|
||||||
pluginsList.append('<li><p><i>No plugins found.</i></p></li>');
|
pluginsList.append('<li><p><i>No plugins found.</i></p></li>');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user