barisusakli 9 years ago
parent 4570edaf39
commit e1a13a807d

@ -180,8 +180,9 @@ $(document).ready(function() {
}); });
$('#menu [data-section="navigation"] ul').html($('#main-nav').html() + ($('#search-menu').html() || '') + ($('#logged-out-menu').html() || '')); $('#menu [data-section="navigation"] ul').html($('#main-nav').html() + ($('#search-menu').html() || '') + ($('#logged-out-menu').html() || ''));
$('#menu [data-section="profile"] ul').html($('#user-control-list').html())
.find('[component="user/status"]').remove(); $('#user-control-list').children().clone(true, true).appendTo($('#menu [data-section="profile"] ul'));
$('#menu [data-section="profile"] ul').find('[component="user/status"]').remove();
socket.on('event:user_status_change', function(data) { socket.on('event:user_status_change', function(data) {
app.updateUserStatus($('#menu [component="user/status"]'), data.status); app.updateUserStatus($('#menu [component="user/status"]'), data.status);

Loading…
Cancel
Save