mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
fix rename room
This commit is contained in:
parent
51a710f84c
commit
36727dd62e
6 changed files with 17 additions and 7 deletions
2
DeckEditor/Deck.min.js
vendored
2
DeckEditor/Deck.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
ImageAndDetail.min.js
vendored
2
ImageAndDetail.min.js
vendored
File diff suppressed because one or more lines are too long
4
Localize.min.js
vendored
4
Localize.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -859,6 +859,16 @@ $('link-edit-deck').onclick = function (event) {
|
|||
return false;
|
||||
};
|
||||
|
||||
$('room-name').onblur = function () {
|
||||
var roomName = $('room-name').value;
|
||||
if (roomName) {
|
||||
socket.emit('renameRoom', {
|
||||
'roomName': roomName
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$('room-name-form').onsubmit = function (event) {
|
||||
var roomName = $('room-name').value;
|
||||
if (roomName) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue