|
@@ -185,14 +185,15 @@ function muteLocalVideo (muted) {
|
185
|
185
|
* If we have a close page enabled, redirect to it without
|
186
|
186
|
* showing any other dialog.
|
187
|
187
|
*
|
188
|
|
- * @param {object} data Feedback data
|
189
|
|
- * @param {boolean} data.showThankYou - whether we should show thank you dialog
|
190
|
|
- * @param {boolean} data.feedbackSubmitted - whether feedback was submitted
|
|
188
|
+ * @param {object} options Feedback data
|
|
189
|
+ * @param {boolean} options.thankYouDialogVisible - whether we should
|
|
190
|
+ * show thank you dialog
|
|
191
|
+ * @param {boolean} options.feedbackSubmitted - whether feedback was submitted
|
191
|
192
|
*/
|
192
|
|
-function maybeRedirectToWelcomePage(data) {
|
|
193
|
+function maybeRedirectToWelcomePage(options) {
|
193
|
194
|
// if close page is enabled redirect to it, without further action
|
194
|
195
|
if (config.enableClosePage) {
|
195
|
|
- if (data.feedbackSubmitted)
|
|
196
|
+ if (options.feedbackSubmitted)
|
196
|
197
|
window.location.pathname = "close.html";
|
197
|
198
|
else
|
198
|
199
|
window.location.pathname = "close2.html";
|
|
@@ -200,7 +201,7 @@ function maybeRedirectToWelcomePage(data) {
|
200
|
201
|
}
|
201
|
202
|
|
202
|
203
|
// else: show thankYou dialog only if there is no feedback
|
203
|
|
- if (data.showThankYou)
|
|
204
|
+ if (options.thankYouDialogVisible)
|
204
|
205
|
APP.UI.messageHandler.openMessageDialog(
|
205
|
206
|
null, "dialog.thankYou", {appName:interfaceConfig.APP_NAME});
|
206
|
207
|
|