Merge pull request #822 from BitBangersCode/admin-fix

Confirmation when removing user from a group
v1.18.x
Barış Soner Uşaklı 11 years ago
commit 94f38d0622

@ -172,6 +172,8 @@ define(function() {
var uid = this.getAttribute('data-uid'),
gid = detailsModal.attr('data-gid');
bootbox.confirm('Are you sure you want to remove this user?', function(confirm) {
if (confirm){
socket.emit('admin.groups.leave', {
gid: gid,
uid: uid
@ -180,6 +182,8 @@ define(function() {
groupMembersEl.find('li[data-uid="' + uid + '"]').remove();
}
});
}
});
});
detailsModalSave.on('click', function() {

Loading…
Cancel
Save