diff options
| author | Arnaud Joset <arj@odoo.com> | 2019-10-11 12:44:47 +0000 |
|---|---|---|
| committer | Arnaud Joset <arj@odoo.com> | 2019-10-11 12:44:47 +0000 |
| commit | 92c26dff5630b573f73c6319f7eb2023abb5d800 (patch) | |
| tree | b1a194105f01b37a7de08ec89c8a6a6395181d87 /addons/web/static/src/js | |
| parent | f55adeaf34adec6dfd54a76791f9615d5af9e434 (diff) | |
[IMP] web: CopyClipboardCharLong widget for long strings
- The copy CopyClipboardChar widget is not nicely rendered for very long strings (e.g. URL).
- This commit modify the behavior of the CopyClipboardChar widget to display it nicely win such cases.
TaskID: 2059972
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index c21443eba3b..c8504eaa144 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1600,13 +1600,6 @@ var CopyClipboard = { /** * @override */ - _render: function () { - this._super.apply(this, arguments); - this.$el.addClass('o_field_copy'); - }, - /** - * @override - */ _renderReadonly: function () { this._super.apply(this, arguments); if (this.value) { @@ -1619,11 +1612,13 @@ var CopyClipboard = { var TextCopyClipboard = FieldText.extend(CopyClipboard, { description: _lt("Copy to Clipboard"), clipboardTemplate: 'CopyClipboardText', + className: "o_field_copy", }); var CharCopyClipboard = FieldChar.extend(CopyClipboard, { description: _lt("Copy to Clipboard"), clipboardTemplate: 'CopyClipboardChar', + className: 'o_field_copy o_text_overflow', }); var AbstractFieldBinary = AbstractField.extend({ |
