fixed #2350 -- chat modal now opens, but input is disabled

This commit is contained in:
Julian Lam
2014-11-04 17:23:39 -05:00
parent e09328c74d
commit 0e9fdc9a09
2 changed files with 17 additions and 15 deletions

View File

@@ -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'), {