|
@@ -209,7 +209,7 @@ function doJoin() {
|
209
|
209
|
if (path.length > 1) {
|
210
|
210
|
roomnode = path.substr(1).toLowerCase();
|
211
|
211
|
} else {
|
212
|
|
- var word = RoomNameGenerator.generateRoomWithoutSeparator(3);
|
|
212
|
+ var word = RoomNameGenerator.generateRoomWithoutSeparator();
|
213
|
213
|
roomnode = word.toLowerCase();
|
214
|
214
|
|
215
|
215
|
window.history.pushState('VideoChat',
|
|
@@ -1167,9 +1167,12 @@ $(document).ready(function () {
|
1167
|
1167
|
function enter_room()
|
1168
|
1168
|
{
|
1169
|
1169
|
var val = $("#enter_room_field").val();
|
1170
|
|
- if(!val)
|
|
1170
|
+ if(!val) {
|
1171
|
1171
|
val = $("#enter_room_field").attr("room_name");
|
1172
|
|
- window.location.pathname = "/" + val;
|
|
1172
|
+ }
|
|
1173
|
+ if (val) {
|
|
1174
|
+ window.location.pathname = "/" + val;
|
|
1175
|
+ }
|
1173
|
1176
|
}
|
1174
|
1177
|
$("#enter_room_button").click(function()
|
1175
|
1178
|
{
|
|
@@ -1177,37 +1180,41 @@ $(document).ready(function () {
|
1177
|
1180
|
});
|
1178
|
1181
|
|
1179
|
1182
|
$("#enter_room_field").keydown(function (event) {
|
1180
|
|
- if (event.keyCode === 13) {
|
|
1183
|
+ if (event.keyCode === 13 /* enter */) {
|
1181
|
1184
|
enter_room();
|
1182
|
1185
|
}
|
1183
|
1186
|
});
|
1184
|
1187
|
|
1185
|
|
- var updateTimeout;
|
1186
|
|
- var animateTimeout;
|
1187
|
|
- $("#reload_roomname").click(function () {
|
1188
|
|
- clearTimeout(updateTimeout);
|
1189
|
|
- clearTimeout(animateTimeout);
|
1190
|
|
- update_roomname();
|
1191
|
|
- });
|
1192
|
1188
|
|
1193
|
|
- function animate(word) {
|
1194
|
|
- var currentVal = $("#enter_room_field").attr("placeholder");
|
1195
|
|
- $("#enter_room_field").attr("placeholder", currentVal + word.substr(0, 1));
|
1196
|
|
- animateTimeout = setTimeout(function() {
|
|
1189
|
+ if (interfaceConfig.GENERATE_ROOMNAMES_ON_WELCOME_PAGE){
|
|
1190
|
+ var updateTimeout;
|
|
1191
|
+ var animateTimeout;
|
|
1192
|
+ $("#reload_roomname").click(function () {
|
|
1193
|
+ clearTimeout(updateTimeout);
|
|
1194
|
+ clearTimeout(animateTimeout);
|
|
1195
|
+ update_roomname();
|
|
1196
|
+ });
|
|
1197
|
+ $("#reload_roomname").show();
|
|
1198
|
+
|
|
1199
|
+ function animate(word) {
|
|
1200
|
+ var currentVal = $("#enter_room_field").attr("placeholder");
|
|
1201
|
+ $("#enter_room_field").attr("placeholder", currentVal + word.substr(0, 1));
|
|
1202
|
+ animateTimeout = setTimeout(function() {
|
1197
|
1203
|
animate(word.substring(1, word.length))
|
1198
|
1204
|
}, 70);
|
1199
|
|
- }
|
1200
|
|
-
|
1201
|
|
- function update_roomname()
|
1202
|
|
- {
|
1203
|
|
- var word = RoomNameGenerator.generateRoomWithoutSeparator();
|
1204
|
|
- $("#enter_room_field").attr("room_name", word);
|
1205
|
|
- $("#enter_room_field").attr("placeholder", "");
|
1206
|
|
- animate(word);
|
1207
|
|
- updateTimeout = setTimeout(update_roomname, 10000);
|
|
1205
|
+ }
|
1208
|
1206
|
|
|
1207
|
+ function update_roomname()
|
|
1208
|
+ {
|
|
1209
|
+ var word = RoomNameGenerator.generateRoomWithoutSeparator();
|
|
1210
|
+ $("#enter_room_field").attr("room_name", word);
|
|
1211
|
+ $("#enter_room_field").attr("placeholder", "");
|
|
1212
|
+ clearTimeout(animateTimeout);
|
|
1213
|
+ animate(word);
|
|
1214
|
+ updateTimeout = setTimeout(update_roomname, 10000);
|
|
1215
|
+ }
|
|
1216
|
+ update_roomname();
|
1209
|
1217
|
}
|
1210
|
|
- update_roomname();
|
1211
|
1218
|
|
1212
|
1219
|
$("#disable_welcome").click(function () {
|
1213
|
1220
|
window.localStorage.welcomePageDisabled
|
|
@@ -1544,7 +1551,6 @@ function hangup() {
|
1544
|
1551
|
disposeConference();
|
1545
|
1552
|
sessionTerminated = true;
|
1546
|
1553
|
connection.emuc.doLeave();
|
1547
|
|
- var buttons = {};
|
1548
|
1554
|
if(config.enableWelcomePage)
|
1549
|
1555
|
{
|
1550
|
1556
|
setTimeout(function()
|