Skip to content

Commit

Permalink
added search to admin/plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jun 20, 2014
1 parent 6303ac4 commit f9b5bf8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/src/forum/admin/plugins.js
Expand Up @@ -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>');
}
Expand Down

0 comments on commit f9b5bf8

Please sign in to comment.