host rename room only

This commit is contained in:
deardrops 2017-05-03 22:26:44 +08:00 committed by WEBXOSS
parent 7a0a1e73e5
commit bce64d3357
3 changed files with 5 additions and 1 deletions

View file

@ -609,6 +609,9 @@ function updateRoom (msgObj) {
}
$('room-name').value = msgObj.roomName;
if (!isHost()) {
$('room-name').readOnly = true;
}
$('room-host-nickname').textContent = msgObj.host;
$('room-guest-nickname').textContent = msgObj.guest;
setClass($('room-guest-nickname'),'ready',msgObj.guestReady);

View file

@ -418,6 +418,7 @@ ol,ul,li {
text-align: center;
background: transparent;
border: none;
widows: 15em;
}
#room-host-nickname {
color: #77d25b;

View file

@ -88,7 +88,7 @@
<tr>
<td colspan="100">
<form id="room-name-form">
<input id="room-name" type="text"></input>
<input id="room-name" type="text" maxlength="15"></input>
</form>
</td>
</tr>