|
|
@ -282,11 +282,17 @@ define('forum/chats', [
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return app.alertError(err.message);
|
|
|
|
return app.alertError(err.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (parseInt(roomId, 10) === ajaxify.data.roomId) {
|
|
|
|
if (parseInt(roomId, 10) === parseInt(ajaxify.data.roomId, 10)) {
|
|
|
|
ajaxify.go('user/' + ajaxify.data.userslug + '/chats');
|
|
|
|
ajaxify.go('user/' + ajaxify.data.userslug + '/chats');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
el.remove();
|
|
|
|
el.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
require(['chat'], function (chat) {
|
|
|
|
|
|
|
|
var modal = chat.getModal(roomId);
|
|
|
|
|
|
|
|
if (modal.length) {
|
|
|
|
|
|
|
|
chat.close(modal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|