Now the live chat seems to work correctly again
bzr revid: nicolas.vanhoren@openerp.com-20130819121415-ksb84flj8t0q6x1e
This commit is contained in:
parent
f0abbcba1f
commit
6badbe9253
|
@ -123,7 +123,7 @@ define(["openerp", "underscore", "require", "jquery",
|
|||
livesupport.ImUser = openerp.Class.extend(openerp.PropertiesMixin, {
|
||||
init: function(parent, user_rec) {
|
||||
openerp.PropertiesMixin.init.call(this, parent);
|
||||
user_rec.image_url = require.toUrl("../img/avatar/avatar.jpeg");
|
||||
user_rec.image_url = require.toUrl("im_livechat/static/ext/static/img/avatar/avatar.jpeg");
|
||||
if (user_rec.image)
|
||||
user_rec.image_url = "data:image/png;base64," + user_rec.image;
|
||||
this.set(user_rec);
|
||||
|
@ -276,8 +276,8 @@ define(["openerp", "underscore", "require", "jquery",
|
|||
return;
|
||||
}
|
||||
this.ting = new Audio(new Audio().canPlayType("audio/ogg; codecs=vorbis") ?
|
||||
require.toUrl("../audio/Ting.ogg") :
|
||||
require.toUrl("../audio/Ting.mp3")
|
||||
require.toUrl("im_livechat/static/ext/static/audio/Ting.ogg") :
|
||||
require.toUrl("im_livechat/static/ext/static/audio/Ting.mp3")
|
||||
);
|
||||
},
|
||||
window_focus_change: function() {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<templates>
|
||||
<t t-name="conversation">
|
||||
<div class="oe_im_chatview_header">
|
||||
<img t-att-src="toUrl('../img/green.png')" class="oe_im_chatview_online"/>
|
||||
<img t-att-src="toUrl('im_livechat/static/ext/static/img/green.png')" class="oe_im_chatview_online"/>
|
||||
<t t-esc="widget.user.get('name') || _t('You')"/>
|
||||
<button class="oe_im_chatview_close">×</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue