summaryrefslogtreecommitdiff
path: root/addons/web_chat/static/lib
diff options
context:
space:
mode:
authornoz (OpenERP) <noz@tinyerp.com>2011-04-11 16:45:38 +0530
committernoz (OpenERP) <noz@tinyerp.com>2011-04-11 16:45:38 +0530
commit8ca75e0b11eb712d549d91064358bb816aeef0ec (patch)
tree8787ff3c4977eae50a93c3b8ca6080121f7ccdac /addons/web_chat/static/lib
parentc2865075b16014ace644d6f0cb17e1ccc2cc4dcf (diff)
[FIX] Sent first chat message to self.
bzr revid: noz@tinyerp.com-20110411111538-yxvexkoyldb5xrid
Diffstat (limited to 'addons/web_chat/static/lib')
-rw-r--r--addons/web_chat/static/lib/AjaxIM/js/im.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_chat/static/lib/AjaxIM/js/im.js b/addons/web_chat/static/lib/AjaxIM/js/im.js
index 42c3f743204..9ab195fd6b6 100644
--- a/addons/web_chat/static/lib/AjaxIM/js/im.js
+++ b/addons/web_chat/static/lib/AjaxIM/js/im.js
@@ -105,7 +105,7 @@
login: this.settings.pollServer + '/login',
logout: this.settings.pollServer + '/logout',
register: this.settings.pollServer + '/register',
- poll: this.settings.pollServer + '/poll?method=' + this.settings.pollType,
+ poll: this.settings.pollServer + '/poll',
send: this.settings.pollServer + '/send',
status: this.settings.pollServer + '/status',
resume: this.settings.pollServer + '/resume'
@@ -116,7 +116,7 @@
queryStrRx = new RegExp('[?](.+)$'),
subdomainRx = new RegExp('((http[s]?:)?//)?(.+?)[.]' + window.location.host, 'i');
$.each(this.actions, function(name, action) {
- if(name == 'poll') {
+ if(name == 'poll' || name == 'send') {
if(self.settings.pollType != 'comet')
action += (queryStrRx.test(action[1]) ? '&' : '?') + 'callback=?';