diff --git a/customize.dist/src/less2/include/support.less b/customize.dist/src/less2/include/support.less index 0a352ec32..890ba810d 100644 --- a/customize.dist/src/less2/include/support.less +++ b/customize.dist/src/less2/include/support.less @@ -52,6 +52,7 @@ } } .cp-support-list-actions { + display: flex; order: 3; .cp-support-hide { display: none; diff --git a/www/support/ui.js b/www/support/ui.js index ba6ae9967..dda07c657 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -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();