mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
commit
aa506a6cb5
6 changed files with 18 additions and 12 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,17 +859,23 @@ $('link-edit-deck').onclick = function (event) {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
$('room-name-form').onsubmit = function (event) {
|
/* 重命名房间名 */
|
||||||
var roomName = $('room-name').value;
|
var oldRoomName = '';
|
||||||
if (roomName) {
|
function handleRenameRoom (event) {
|
||||||
|
var name = $('room-name').value;
|
||||||
|
if (name && name !== oldRoomName ) {
|
||||||
socket.emit('renameRoom', {
|
socket.emit('renameRoom', {
|
||||||
'roomName': roomName
|
'roomName': name
|
||||||
});
|
});
|
||||||
|
oldRoomName = name;
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('room-name').onblur = handleRenameRoom
|
||||||
|
$('room-name-form').onsubmit = handleRenameRoom
|
||||||
|
|
||||||
/* 直播 */
|
/* 直播 */
|
||||||
var stopFetchingLive = 0;
|
var stopFetchingLive = 0;
|
||||||
var watchingLive = false;
|
var watchingLive = false;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue