fix rename room

This commit is contained in:
deardrops 2017-05-23 18:29:10 +08:00
parent 51a710f84c
commit 36727dd62e
6 changed files with 17 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
Localize.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -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