(DrupalChat Dev 2010-Nov-17)
When i'm chatting with an user (A) and another user (B) send me a message, (B) get focus.
This is a great problem, but i've fixed it using something like this in drupalchat.js
if($("#mainpanel .chatbox .active").length <= 0){
if ($("#chatbox_"+chatboxtitle).css('display') == 'none') {
$("#chatbox_"+chatboxtitle).css('display','block');
}
$("#chatbox_"+chatboxtitle+" a:first").click(); //Toggle the subpanel to make active
$("#chatbox_"+chatboxtitle+" .chatboxtextarea").focus();
}
Now (B) get focus only if there is no active chat.
P.S. it's the first time that i post an issue.
- sorry for my english
- sorry for any mistake i've done :)
I wanna just help 'cause i like this module :)
| Comment | File | Size | Author |
|---|---|---|---|
| drupalchat.js_.zip | 3.5 KB | kerouac3001 |
Comments
Comment #1
kerouac3001 commentedComment #2
darklrd commentedHey kerouac3001,
Thanks a lot for your patch :) Will include it in dev.
Comment #3
darklrd commentedHey kerouac3001,
Thanks a lot for your patch :) Will include it in dev.
Comment #4
darklrd commentedThere was some problem with the patch :(
Comment #5
darklrd commentedIt has been fixed now.
Comment #6
darklrd commented