mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
closes #5506
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
"details.disableJoinRequests": "Disable join requests",
|
"details.disableJoinRequests": "Disable join requests",
|
||||||
"details.grant": "Grant/Rescind Ownership",
|
"details.grant": "Grant/Rescind Ownership",
|
||||||
"details.kick": "Kick",
|
"details.kick": "Kick",
|
||||||
|
"details.kick_confirm": "Are you sure you want to remove this member from the group?",
|
||||||
|
|
||||||
"details.owner_options": "Group Administration",
|
"details.owner_options": "Group Administration",
|
||||||
"details.group_name": "Group Name",
|
"details.group_name": "Group Name",
|
||||||
|
|||||||
@@ -75,15 +75,23 @@ define('forum/groups/details', [
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'kick':
|
case 'kick':
|
||||||
socket.emit('groups.kick', {
|
translator.translate('[[groups:details.kick_confirm]]', function (translated) {
|
||||||
uid: uid,
|
bootbox.confirm(translated, function (confirm) {
|
||||||
groupName: groupName,
|
if (!confirm) {
|
||||||
}, function (err) {
|
return;
|
||||||
if (!err) {
|
}
|
||||||
userRow.slideUp().remove();
|
|
||||||
} else {
|
socket.emit('groups.kick', {
|
||||||
app.alertError(err.message);
|
uid: uid,
|
||||||
}
|
groupName: groupName,
|
||||||
|
}, function (err) {
|
||||||
|
if (!err) {
|
||||||
|
userRow.slideUp().remove();
|
||||||
|
} else {
|
||||||
|
app.alertError(err.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user