Author Topic: Fixing Annoying Focus issue for agents  (Read 11782 times)

0 Members and 1 Guest are viewing this topic.

Sheldmandu

  • Sr. Member
  • ****
  • Posts: 34
Fixing Annoying Focus issue for agents
« on: May 25, 2009, 12:41:46 AM »
To get rid of the annoying focusing on the Agent's end every time a visitor sends a message all you need to do is add an extra condition to check if it's the client (or not in which case it's the agent) to the following in /webim/js/chat.js

if(!this.wt){window.focus();}

So it becomes:

if((!this.wt) && (window.location.href.indexOf('client') >= 0)){window.focus();}