diff --git a/assets/components/tickets/js/web/default.js b/assets/components/tickets/js/web/default.js index 6bfb7bf4..de0bfdf8 100644 --- a/assets/components/tickets/js/web/default.js +++ b/assets/components/tickets/js/web/default.js @@ -287,6 +287,7 @@ var Tickets = { comment: { preview: function (form, button) { + $(document).trigger('tickets_before_comment_preview', form, button); $(form).ajaxSubmit({ data: {action: 'comment/preview'}, url: TicketsConfig.actionUrl, @@ -313,6 +314,7 @@ var Tickets = { }, save: function (form, button) { + $(document).trigger('tickets_before_comment_save', form, button); $(form).ajaxSubmit({ data: {action: 'comment/save'}, url: TicketsConfig.actionUrl,