v1.18.x
psychobunny 11 years ago
parent 05b8b4b43a
commit c692f7e8fe

@ -66,9 +66,14 @@ define('forum/chats', ['string', 'sounds', 'forum/infinitescroll'], function(S,
popoutEl.on('click', function() {
var username = $('.expanded-chat').attr('data-username'),
uid = Chats.getRecipientUid();
ajaxify.go('chats', function() {
app.openChat(username, uid);
}, true);
if (app.previousUrl && app.previousUrl.match(/chats/)) {
ajaxify.go('chats', function() {
app.openChat(username, uid);
}, true);
} else {
window.history.go(-1);
}
});
$('.recent-chats').on('scroll', function() {

Loading…
Cancel
Save