mirror of
https://github.com/Emupedia/emupedia.github.io.git
synced 2026-12-04 15:00:21 +08:00
More work
This commit is contained in:
@@ -126,7 +126,23 @@
|
||||
|
||||
self.buffer = [];
|
||||
} else if (e.originalEvent.data.cmd === 'chat.toggle') {
|
||||
$('body').find('iframe[id="Chat"]').parent().slideToggle(300);
|
||||
var $chat = $('body').find('iframe[id="Chat"]').parent()
|
||||
|
||||
$chat.slideToggle(300, function () {
|
||||
if ($chat.is(':hidden')) {
|
||||
if (typeof window.u_network !== 'undefined') {
|
||||
if (typeof window.u_network.emit_event === 'function') {
|
||||
window.u_network.emit_event('chat.hide', {});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (typeof window.u_network !== 'undefined') {
|
||||
if (typeof window.u_network.emit_event === 'function') {
|
||||
window.u_network.emit_event('chat.show', {});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
self.net.send_cmd(e.originalEvent.data.cmd, e.originalEvent.data.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user