From 46a5ae07aa9ed36f0585efa31de414aab97e066d Mon Sep 17 00:00:00 2001 From: "s.petersen" <> Date: Fri, 22 Aug 2014 18:02:28 +0200 Subject: [PATCH] Better button for Open Calling Partner --- .../static/src/js/asterisk_click2dial.js | 3 ++- .../static/src/xml/asterisk_click2dial.xml | 12 +++++------- 2 files changed, 7 insertions(+), 8 deletions(-) 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 @@ -
- - -
+
  • + + + +