[mirotalksfu] - improve joinRoom
هذا الالتزام موجود في:
@@ -119,7 +119,7 @@
|
||||
<button
|
||||
id="joinRoomButton"
|
||||
class="button button-primary pulse"
|
||||
onclick="{window.location.href = '/join/' + document.getElementById('roomName').value}"
|
||||
onclick="joinRoom()"
|
||||
>
|
||||
Join Room
|
||||
</button>
|
||||
@@ -127,9 +127,13 @@
|
||||
document.getElementById('roomName').onkeyup = (e) => {
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
document.getElementById('joinRoomButton').click();
|
||||
joinRoom();
|
||||
}
|
||||
};
|
||||
function joinRoom() {
|
||||
let roomName = document.getElementById('roomName').value;
|
||||
window.location.href = '/join/' + roomName;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<button
|
||||
id="joinRoomButton"
|
||||
class="button button-primary pulse"
|
||||
onclick="{window.location.href = '/join/' + document.getElementById('roomName').value}"
|
||||
onclick="joinRoom()"
|
||||
>
|
||||
Join Room
|
||||
</button>
|
||||
@@ -130,9 +130,13 @@
|
||||
document.getElementById('roomName').onkeyup = (e) => {
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
document.getElementById('joinRoomButton').click();
|
||||
joinRoom();
|
||||
}
|
||||
};
|
||||
function joinRoom() {
|
||||
let roomName = document.getElementById('roomName').value;
|
||||
window.location.href = '/join/' + roomName;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم