Reports to close callback whether feedback is submitted.

This commit is contained in:
damencho 2016-11-01 13:10:58 -05:00
parent 456b3030e3
commit e81a10de4a
1 changed files with 4 additions and 4 deletions

View File

@ -164,9 +164,7 @@ export default class Dialog {
}
setFeedbackMessage() {
let message = $('#feedbackTextArea').val();
this.feedbackMessage = message;
this.feedbackMessage = $('#feedbackTextArea').val();
}
show(cb) {
@ -179,6 +177,8 @@ export default class Dialog {
}
onHide() {
this.onCloseCallback(this.feedbackScore, this.feedbackMessage);
this.onCloseCallback({
feedbackSubmitted: this.submitted
});
}
}