diff --git a/asterisk_click2dial/static/src/js/asterisk_click2dial.js b/asterisk_click2dial/static/src/js/asterisk_click2dial.js index 15443bc..9cfe34e 100644 --- a/asterisk_click2dial/static/src/js/asterisk_click2dial.js +++ b/asterisk_click2dial/static/src/js/asterisk_click2dial.js @@ -10,7 +10,8 @@ openerp.asterisk_click2dial = function (instance) { template:'asterisk_click2dial.OpenCallingPartner', start: function () { - this.$('button').on('click', this.on_open_calling_partner); + this.$('#asterisk-open-calling-partner').on( + 'click', this.on_open_calling_partner); this._super(); }, diff --git a/asterisk_click2dial/static/src/xml/asterisk_click2dial.xml b/asterisk_click2dial/static/src/xml/asterisk_click2dial.xml index 65736dd..67219e5 100644 --- a/asterisk_click2dial/static/src/xml/asterisk_click2dial.xml +++ b/asterisk_click2dial/static/src/xml/asterisk_click2dial.xml @@ -9,13 +9,11 @@ -
- - -
+
  • + + + +