diff options
| author | Roberto López López (OpenERP) <rlo@openerp.com> | 2011-12-09 14:19:29 +0100 |
|---|---|---|
| committer | Roberto López López (OpenERP) <rlo@openerp.com> | 2011-12-09 14:19:29 +0100 |
| commit | 1feae8fa0c7e2c167cecac2f2c2af5aeec27fef0 (patch) | |
| tree | f5804509a6eea320396bbe5f29846e2136f32b43 /addons/web_livechat | |
| parent | 89d3a64d49d1b11fefb6f7b7712e8b62ebbcedcb (diff) | |
modified according to review
bzr revid: rlo@openerp.com-20111209131929-l672qxik23y4pka4
Diffstat (limited to 'addons/web_livechat')
| -rw-r--r-- | addons/web_livechat/static/src/js/web_livechat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_livechat/static/src/js/web_livechat.js b/addons/web_livechat/static/src/js/web_livechat.js index 5b5c4b3778e..36fd79cd1fa 100644 --- a/addons/web_livechat/static/src/js/web_livechat.js +++ b/addons/web_livechat/static/src/js/web_livechat.js @@ -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); |
