modified according to review

bzr revid: rlo@openerp.com-20111209131929-l672qxik23y4pka4
This commit is contained in:
Roberto López López (OpenERP)
2011-12-09 14:19:29 +01:00
parent 89d3a64d49
commit 1feae8fa0c
@@ -40,7 +40,7 @@ openerp.web_livechat.Livechat = openerp.web.Widget.extend({
pwc.get_func('is_livechat_enable')().then(function(res) {
console.log('result', res);
if(res) {
self.$element.find('a').click(self.do_load_livechat);
self.$element.click(self.do_load_livechat);
} else {
self.do_action({type: 'ir.act.url', url: 'http://www.openerp.com/support-or-publisher-warranty-contract'});
}
@@ -62,7 +62,7 @@ openerp.web_livechat.Livechat = openerp.web.Widget.extend({
evt.preventDefault();
var self = this;
this.$element.find('Header_Livechat').unbind('click', this.do_load_livechat);
this.$element.unbind('click', this.do_load_livechat);
var lc_id = _.uniqueId('livechat_');
this.$element.attr('id', lc_id);