mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fixed #2350 -- chat modal now opens, but input is disabled
This commit is contained in:
@@ -314,22 +314,16 @@ var socket,
|
||||
}
|
||||
|
||||
require(['chat'], function (chat) {
|
||||
chat.canMessage(touid, function(err) {
|
||||
function loadAndCenter(chatModal) {
|
||||
chat.load(chatModal.attr('UUID'));
|
||||
chat.center(chatModal);
|
||||
}
|
||||
function loadAndCenter(chatModal) {
|
||||
chat.load(chatModal.attr('UUID'));
|
||||
chat.center(chatModal);
|
||||
}
|
||||
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
if (!chat.modalExists(touid)) {
|
||||
chat.createModal(username, touid, loadAndCenter);
|
||||
} else {
|
||||
loadAndCenter(chat.getModal(touid));
|
||||
}
|
||||
});
|
||||
if (!chat.modalExists(touid)) {
|
||||
chat.createModal(username, touid, loadAndCenter);
|
||||
} else {
|
||||
loadAndCenter(chat.getModal(touid));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user