[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
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// bootstrap variables needed for embedding of im_livechat outside website
|
||||
@gray-light: lighten(#000, 46.7%); // #777
|
||||
@gray-lighter: lighten(#000, 93.5%); // #eee
|
||||
@screen-xs-max: 767px;
|
||||
.text-muted {
|
||||
color: @gray-light;
|
||||
}
|
||||
@@ -128,6 +128,9 @@
|
||||
<script type="text/javascript" src="/mail/static/src/js/chat_window.js"></script>
|
||||
<script type="text/javascript" src="/mail/static/src/js/thread.js"></script>
|
||||
<script type="text/javascript" src="/im_livechat/static/src/js/im_livechat.js"></script>
|
||||
<link rel="stylesheet" href="/im_livechat/static/src/less/im_livechat_bootstrap.less"/>
|
||||
<link rel="stylesheet" href="/web/static/src/less/variables.less"/>
|
||||
<link rel="stylesheet" href="/web/static/src/less/utils.less"/>
|
||||
<link rel="stylesheet" href="/mail/static/src/less/chat_window.less"></link>
|
||||
<link rel="stylesheet" href="/mail/static/src/less/thread.less"></link>
|
||||
<link rel="stylesheet" href="/im_livechat/static/src/less/im_livechat.less"/>
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user