Confirm button in the support when closing or removing a ticket

pull/1/head
yflory 5 years ago
parent c9a0eef5f1
commit bd21953861

@ -52,6 +52,7 @@
}
}
.cp-support-list-actions {
display: flex;
order: 3;
.cp-support-hide {
display: none;

@ -152,6 +152,7 @@ define([
actions
]));
/*
$(close).click(function () {
send(ctx, content.id, 'CLOSE', {}, content.sender);
});
@ -160,6 +161,20 @@ define([
if (typeof(onHide) !== "function") { return; }
onHide();
});
*/
UI.confirmButton(close, {
classes: 'btn-danger'
}, function() {
send(ctx, content.id, 'CLOSE', {}, content.sender);
$(close).hide();
});
UI.confirmButton(hide, {
classes: 'btn-danger'
}, function() {
if (typeof(onHide) !== "function") { return; }
onHide();
});
$(answer).click(function () {
$ticket.find('.cp-support-form-container').remove();

Loading…
Cancel
Save