mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
use form for editing room name
This commit is contained in:
parent
7c389507a9
commit
7a0a1e73e5
2 changed files with 8 additions and 4 deletions
|
@ -856,14 +856,16 @@ $('link-edit-deck').onclick = function (event) {
|
|||
return false;
|
||||
};
|
||||
|
||||
$('room-name').onblur = function (event) {
|
||||
var roomName = event.target.value;
|
||||
$('room-name-form').onsubmit = function (event) {
|
||||
var roomName = $('room-name').value;
|
||||
if (roomName) {
|
||||
socket.emit('renameRoom', {
|
||||
'roomName': roomName
|
||||
});
|
||||
}
|
||||
};
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
/* 直播 */
|
||||
var stopFetchingLive = 0;
|
||||
|
|
|
@ -87,7 +87,9 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td colspan="100">
|
||||
<form id="room-name-form">
|
||||
<input id="room-name" type="text"></input>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue