Merge pull request #924 from jitsi/add-close-page

Adds close page
This commit is contained in:
yanas 2016-09-22 16:20:14 -05:00 committed by GitHub
commit 06247266ad
6 changed files with 48 additions and 9 deletions

8
close.html Normal file
View File

@ -0,0 +1,8 @@
<html>
<head>
<link rel="stylesheet" href="css/all.css"/>
</head>
<body>
<div class="closeMessage">Thank you for your feedback!</div>
</body>
</html>

View File

@ -202,8 +202,28 @@ function muteLocalVideo (muted) {
/**
* Check if the welcome page is enabled and redirects to it.
* If requested show a thank you dialog before that.
* If we have a close page enabled, redirect to it without
* showing any other dialog.
* @param {boolean} showThankYou whether we should show a thank you dialog
*/
function maybeRedirectToWelcomePage() {
function maybeRedirectToWelcomePage(showThankYou) {
// if close page is enabled redirect to it, without further action
if (config.enableClosePage) {
window.location.pathname = "close.html";
return;
}
if (showThankYou) {
APP.UI.messageHandler.openMessageDialog(
null, null, null,
APP.translation.translateString(
"dialog.thankYou", {appName:interfaceConfig.APP_NAME}
)
);
}
if (!config.enableWelcomePage) {
return;
}

View File

@ -56,6 +56,8 @@ var config = {
//disableAdaptiveSimulcast: false,
enableRecording: false,
enableWelcomePage: true,
//enableClosePage: false, // enabling the close page will ignore the welcome
// page redirection when call is hangup
disableSimulcast: false,
logStats: false, // Enable logging of PeerConnection stats via the focus
// requireDisplayName: true, // Forces the participants that doesn't have display name to enter it when they enter the room.

12
css/_close.scss Normal file
View File

@ -0,0 +1,12 @@
html, body {
width: 100%;
height:100%;
color: $defaultColor;
background: $defaultBackground;
text-align: center;
}
.closeMessage {
font-size: 36px;
margin-top: 20%;
}

View File

@ -42,5 +42,7 @@
@import 'device_settings_dialog';
@import 'jquery.contextMenu';
@import 'keyboard-shortcuts';
@import 'close';
/* Modules END */

View File

@ -1130,14 +1130,9 @@ UI.requestFeedback = function () {
}
} else {
// If the feedback functionality isn't enabled we show a thank
// you dialog.
messageHandler.openMessageDialog(
null, null, null,
APP.translation.translateString(
"dialog.thankYou", {appName:interfaceConfig.APP_NAME}
)
);
resolve();
// you dialog. Signaling it (true), so the caller
// of requestFeedback can act on it
resolve(true);
}
});
};