Browse Source

Merge pull request #57 from intero-chz/7.0

[Fix] avoid multiple click2dial like in #20
7.0
Alexis de Lattre 9 years ago
parent
commit
1348eb752b
  1. 1
      base_phone/static/src/js/phone_widget.js

1
base_phone/static/src/js/phone_widget.js

@ -38,6 +38,7 @@ openerp.base_phone = function (instance) {
if (href_text && !this.options.dial_button_invisible) { if (href_text && !this.options.dial_button_invisible) {
click2dial_text = _t('Dial'); click2dial_text = _t('Dial');
} }
this.$el.find('#click2dial').off('click');
this.$el.find('#click2dial') this.$el.find('#click2dial')
.text(click2dial_text) .text(click2dial_text)
.on('click', function(ev) { .on('click', function(ev) {

Loading…
Cancel
Save