Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Made editions in PR

Ilya Daynatovich986f13ef1a92
diff --git a/modules/UI/welcome_page/WelcomePage.js b/modules/UI/welcome_page/WelcomePage.js
index 775f2a37ca..42057b91b2 100644
--- a/modules/UI/welcome_page/WelcomePage.js
+++ b/modules/UI/welcome_page/WelcomePage.js
@@ -7,10 +7,12 @@ import UIUtil from '../util/UIUtil';
var animateTimeout, updateTimeout;
-function enter_room() {
- var val = $("#enter_room_field").val();
+function enterRoom() {
+ const $enterRoomField = $("#enter_room_field");
+
+ var val = $enterRoomField.val();
if(!val) {
- val = $("#enter_room_field").attr("room_name");
+ val = $enterRoomField.attr("room_name");
}
if (val) {
window.location.pathname = "/" + val;
@@ -68,12 +70,12 @@ function setupWelcomePage() {
}
$("#enter_room_button").click(function() {
- enter_room();
+ enterRoom();
});
$("#enter_room_field").keydown(function (event) {
if (event.keyCode === 13 /* enter */) {
- enter_room();
+ enterRoom();
}
});