removed join/view buttons from group list, made cover clickable, #2588

v1.18.x
Julian Lam 10 years ago
parent 698f598a30
commit 710df626b5

@ -7,18 +7,10 @@ define('forum/groups/list', function() {
Groups.init = function() { Groups.init = function() {
var groupsEl = $('.groups.row'); var groupsEl = $('.groups.row');
// Group joining and leaving groupsEl.on('click', '.list-cover', function() {
groupsEl.on('click', '[data-action]', function() { var groupName = $(this).parents('[data-group]').attr('data-group');
var action = $(this).attr('data-action'),
groupName = $(this).parents('[data-group]').attr('data-group');
socket.emit('groups.' + action, { ajaxify.go('groups/' + groupName);
groupName: groupName
}, function(err) {
if (!err) {
ajaxify.refresh();
}
});
}); });
// Group creation // Group creation

Loading…
Cancel
Save