(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 :)

CommentFileSizeAuthor
drupalchat.js_.zip3.5 KBkerouac3001

Comments

kerouac3001’s picture

Assigned: kerouac3001 » Unassigned
darklrd’s picture

Hey kerouac3001,

Thanks a lot for your patch :) Will include it in dev.

darklrd’s picture

Hey kerouac3001,

Thanks a lot for your patch :) Will include it in dev.

darklrd’s picture

There was some problem with the patch :(

darklrd’s picture

It has been fixed now.

darklrd’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.