mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:27:01 +02:00
removed join/view buttons from group list, made cover clickable, #2588
This commit is contained in:
@@ -7,18 +7,10 @@ define('forum/groups/list', function() {
|
||||
Groups.init = function() {
|
||||
var groupsEl = $('.groups.row');
|
||||
|
||||
// Group joining and leaving
|
||||
groupsEl.on('click', '[data-action]', function() {
|
||||
var action = $(this).attr('data-action'),
|
||||
groupName = $(this).parents('[data-group]').attr('data-group');
|
||||
groupsEl.on('click', '.list-cover', function() {
|
||||
var groupName = $(this).parents('[data-group]').attr('data-group');
|
||||
|
||||
socket.emit('groups.' + action, {
|
||||
groupName: groupName
|
||||
}, function(err) {
|
||||
if (!err) {
|
||||
ajaxify.refresh();
|
||||
}
|
||||
});
|
||||
ajaxify.go('groups/' + groupName);
|
||||
});
|
||||
|
||||
// Group creation
|
||||
|
||||
Reference in New Issue
Block a user