|
|
@ -544,14 +544,15 @@ function initInterfaceDirectMsg() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('.group-messages-control .leave').on('click', function (event) { |
|
|
|
$('.group-messages-control .leave').on('click', function (event) { |
|
|
|
var groupAlias = $(event.target).closest('[data-screen-name]').attr('data-screen-name'); |
|
|
|
var elemLeave = $(event.target); |
|
|
|
|
|
|
|
var groupAlias = elemLeave.closest('[data-screen-name]').attr('data-screen-name'); |
|
|
|
event.data = { |
|
|
|
event.data = { |
|
|
|
txtTitle: polyglot.t('сonfirm_group_leaving_header'), |
|
|
|
txtTitle: polyglot.t('сonfirm_group_leaving_header'), |
|
|
|
txtMessage: polyglot.t('сonfirm_group_leaving_body', {alias: groupAlias}), |
|
|
|
txtMessage: polyglot.t('сonfirm_group_leaving_body', {alias: groupAlias}), |
|
|
|
cbConfirm: function (groupAlias) { |
|
|
|
cbConfirm: function (req) { |
|
|
|
groupMsgLeaveGroup(groupAlias, function () {history.back();}); |
|
|
|
groupMsgLeaveGroup(req.groupAlias, closeModal, req.elem); |
|
|
|
}, |
|
|
|
}, |
|
|
|
cbConfirmReq: groupAlias |
|
|
|
cbConfirmReq: {groupAlias: groupAlias, elem: elemLeave} |
|
|
|
}; |
|
|
|
}; |
|
|
|
confirmPopup(event); |
|
|
|
confirmPopup(event); |
|
|
|
}); |
|
|
|
}); |
|
|
|