The drupal chat bar retains the chat windows when navigating from one page to another.
This is working fine in Firefox and IE
But it seems to break in Safari
The cookies are being set properly. But something seems to break in Safari
I have even tried switching it to local storage in case of safari but still no luck!

Comments

rajarju’s picture

Status: Active » Closed (fixed)

Hey i got it working.

It was an issue with the Ajax request sent on window unload event.
In case of Safari it doesn't seem to sent the request properly to the server

I got it working by making the request synchronous
The command is already there.. just uncomment it!

darklrd’s picture

Can you please post it here?

Thanks

rajarju’s picture

Priority: Major » Normal

Hey,

its on line 704 on drupalchat.js. In the $.ajax() that you had added to send the currently opened chat to the server.
Its already set to false. I had patched it to work without jQuery update. During which i had commented it. Hence this issue is not relevant.

But i seriously think you can improve this a lot. Hope you are thinking of a rework for D7.
Nice module by the way!!
Cheers

rajarju’s picture

Closed