[FIX] web: fix phone widget rendering
Cross-port of odoo/enterprise@135c02cbc5
This commit is contained in:
@@ -886,7 +886,10 @@ var FieldPhone = FieldEmail.extend({
|
||||
this._super();
|
||||
if (this._canCall()) {
|
||||
var text = this.$el.text();
|
||||
this.$el.html(text.substr(0, text.length/2) + "­" + text.substr(text.length/2)); // To prevent Skype app to find the phone number
|
||||
// Split phone number into two to prevent Skype app from finding it
|
||||
var part1 = _.escape(text.substr(0, text.length/2));
|
||||
var part2 = _.escape(text.substr(text.length/2));
|
||||
this.$el.html(part1 + "­" + part2);
|
||||
} else {
|
||||
this.$el.removeClass('o_form_uri');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user