searching on keyup instead of enter key

This commit is contained in:
Julian Lam
2015-01-29 16:41:48 -05:00
parent eb5746b2b4
commit b052ed3504

View File

@@ -31,9 +31,7 @@ define('forum/groups/list', function() {
}); });
// Group searching // Group searching
$('#search-text').on('keydown', function(e) { $('#search-text').on('keyup', Groups.search);
if (e.keyCode === 13) { Groups.search(e); }
});
$('#search-button').on('click', Groups.search); $('#search-button').on('click', Groups.search);
}; };