summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui/feedback_box.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mail_view/ui/feedback_box.js')
-rw-r--r--web-ui/app/js/mail_view/ui/feedback_box.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web-ui/app/js/mail_view/ui/feedback_box.js b/web-ui/app/js/mail_view/ui/feedback_box.js
index aad35f2a..eb079b5b 100644
--- a/web-ui/app/js/mail_view/ui/feedback_box.js
+++ b/web-ui/app/js/mail_view/ui/feedback_box.js
@@ -46,11 +46,16 @@ define(['flight/lib/component', 'views/templates', 'page/events', 'features'],
this.trigger(document, events.feedback.submit, { feedback: feedback });
};
+ this.showSuccessMessage = function () {
+ this.trigger(document, events.ui.userAlerts.displayMessage, { message: 'Thanks for your feedback!' });
+ };
+
this.after('initialize', function () {
if (features.isEnabled('feedback')) {
this.render();
this.on(document, events.dispatchers.rightPane.openFeedbackBox, this.openFeedbackBox);
this.on(document, events.feedback.submitted, this.showNoMessageSelected);
+ this.on(document, events.feedback.submitted, this.showSuccessMessage);
this.on(this.select('closeButton'), 'click', this.showNoMessageSelected);
this.on(this.select('submitButton'), 'click', this.submitFeedback);
}