| frappe.ui.form.ControlData = class ControlData extends frappe.ui.form.ControlData { |
| if (this.df.options == 'Phone') { |
| if (this.frm && this.frm.fields_dict) { |
| Object.values(this.frm.fields_dict).forEach(function(field) { |
| if (field.df.read_only === 1 && field.df.options === 'Phone' |
| && field.disp_area.style[0] != 'display' && !field.has_icon) { |
| if (frappe.phone_call.handler) { |
| let control = this.df.read_only ? '.control-value' : '.control-input'; |
| this.$wrapper.find(control) |
| <a class="btn-open no-decoration" title="${__('Make a call')}"> |
| ${frappe.utils.icon('call')} |
| frappe.phone_call.handler(this.get_value(), this.frm); |