summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/js
diff options
context:
space:
mode:
authorAntoine Guenet <age@odoo.com>2018-12-28 17:59:35 +0000
committerChristophe Matthieu <chm@odoo.com>2019-01-17 08:40:21 +0000
commiteb0ea8efbe932c140302e9f8da33a839bcd73146 (patch)
treee097625171b2b67ed5f5288ced67446608b9f633 /addons/mass_mailing/static/src/js
parentf296992317e96562c66bd7ad59a5080d6c551ed5 (diff)
[ADD] web_editor,*: Tests for new structure of web editor
The refactoring also had to be done in order to create a set of unit tests. Each behavior can be tested, including the behaviors performed as a consequence of keyboard interactions (for instance: Enter, Tab...). This commit also contains some changes to test_utils that were necessary given the new structure of the wysiwyg editor. Co-authored-by: Gorash <chm@odoo.com>
Diffstat (limited to 'addons/mass_mailing/static/src/js')
-rw-r--r--addons/mass_mailing/static/src/js/mass_mailing_widget.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mass_mailing/static/src/js/mass_mailing_widget.js b/addons/mass_mailing/static/src/js/mass_mailing_widget.js
index 1e2bf350fec..e633ad2b4a1 100644
--- a/addons/mass_mailing/static/src/js/mass_mailing_widget.js
+++ b/addons/mass_mailing/static/src/js/mass_mailing_widget.js
@@ -56,8 +56,8 @@ var MassMailingFieldHtml = FieldHtml.extend({
convertInline.classToStyle($editable);
self.trigger_up('field_changed', {
- dataPointID: this.dataPointID,
- changes: _.object([fieldName], [this._unWrap($editable.html())])
+ dataPointID: self.dataPointID,
+ changes: _.object([fieldName], [self._unWrap($editable.html())])
});
if (self._isDirty && self.mode === 'edit') {