|
|
@ -36,13 +36,11 @@ define('forum/groups/list', function() {
|
|
|
|
$('#search-sort').on('change', Groups.search);
|
|
|
|
$('#search-sort').on('change', Groups.search);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Groups.search = function(event) {
|
|
|
|
Groups.search = function() {
|
|
|
|
var groupsEl = $('#groups-list'),
|
|
|
|
var groupsEl = $('#groups-list'),
|
|
|
|
queryEl = $('#search-text'),
|
|
|
|
queryEl = $('#search-text'),
|
|
|
|
sortEl = $('#search-sort');
|
|
|
|
sortEl = $('#search-sort');
|
|
|
|
|
|
|
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
socket.emit('groups.search', {
|
|
|
|
socket.emit('groups.search', {
|
|
|
|
query: queryEl.val(),
|
|
|
|
query: queryEl.val(),
|
|
|
|
options: {
|
|
|
|
options: {
|
|
|
|