summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-11-23 14:13:04 +0100
committerNicolas Lempereur <nle@odoo.com>2015-11-24 13:02:47 +0100
commit4424f301a66df5e03651c5c550312bb5dfd20f4f (patch)
tree21132f5a0f41da2c4eb00fab5bc5f3c9862e1483 /addons/mail/static/src
parenta4b6e3a82a4621e4fd80b69ff5b3bd828de30b9f (diff)
[FIX] im_livechat: missing dependencies in im_livechat page
The Website Live Chat is supposed to appear following 3 ways outside of the backend: - in a singleton page with path /im_livechat/support/{id} - in a page in which a code code snippet (with two script and a css bundle) has been inserted in the head section - by installing the module "Website Live Support" In the first both instances, including some less files and bootstrap default variables is required which this commit do. In the last instance these file should already be included in the website and the additional assets required are inserted in the website.assets_frontend bundle. opw-654898
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/chat_window.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chat_window.js b/addons/mail/static/src/js/chat_window.js
index 8fa1e2a2536..3936ef956e1 100644
--- a/addons/mail/static/src/js/chat_window.js
+++ b/addons/mail/static/src/js/chat_window.js
@@ -76,7 +76,8 @@ return Widget.extend({
this.fold();
},
on_keydown: function (event) {
- if (event.which === $.ui.keyCode.ENTER) {
+ // ENTER key (avoid requiring jquery ui for external livechat)
+ if (event.which === 13) {
var message = {
content: this.$input.val(),
attachment_ids: [],