mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
another fix
This commit is contained in:
@@ -28,7 +28,7 @@ var ajaxify = {};
|
|||||||
ajaxify.go = function(url, callback, template, quiet) {
|
ajaxify.go = function(url, callback, template, quiet) {
|
||||||
// leave room and join global
|
// leave room and join global
|
||||||
app.enter_room('global');
|
app.enter_room('global');
|
||||||
app.showLoginMessage();
|
|
||||||
|
|
||||||
var url = url.replace(/\/$/, "");
|
var url = url.replace(/\/$/, "");
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ var socket,
|
|||||||
socket.on('event:connect', function(data) {
|
socket.on('event:connect', function(data) {
|
||||||
console.log('connected to nodebb socket: ', data);
|
console.log('connected to nodebb socket: ', data);
|
||||||
app.username = data.username;
|
app.username = data.username;
|
||||||
|
app.showLoginMessage();
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('event:alert', function(data) {
|
socket.on('event:alert', function(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user