mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fixed #2350 -- chat modal now opens, but input is disabled
This commit is contained in:
@@ -244,6 +244,14 @@ define('chat', ['taskbar', 'string', 'sounds', 'forum/chats'], function(taskbar,
|
||||
checkStatus(chatModal);
|
||||
});
|
||||
|
||||
module.canMessage(touid, function(err) {
|
||||
if (err) {
|
||||
// Disable the text input
|
||||
chatModal.find('input[type="text"]').attr('disabled', true);
|
||||
console.log('disabling');
|
||||
}
|
||||
});
|
||||
|
||||
chatModal.find('.user-typing .text').translateText('[[modules:chat.user_typing, ' + username + ']]');
|
||||
|
||||
taskbar.push('chat', chatModal.attr('UUID'), {
|
||||
|
||||
Reference in New Issue
Block a user