summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/fields/abstract_field.js6
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js7
2 files changed, 7 insertions, 6 deletions
diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js
index be271ec3d3d..66bf2aaabe7 100644
--- a/addons/web/static/src/js/fields/abstract_field.js
+++ b/addons/web/static/src/js/fields/abstract_field.js
@@ -40,12 +40,6 @@ var AbstractField = Widget.extend({
'keydown': '_onKeydown',
},
/**
- * for field widgets that may have a large number of field changes quickly,
- * it could be a good idea to debounce the changes. In that case, this is
- * the suggested value. For example, @see DebouncedField.
- */
- DEBOUNCE: 1000,
- /**
* if this flag is set to true, the rest of the web client will assume that
* it is not editable. For example, the list view in editable mode will
* skip the widget when pressing tab
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js
index a8d026fc8ec..4eb13eb0ec5 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -31,6 +31,12 @@ var DebouncedField = AbstractField.extend({
'input': '_onInput',
'change': '_onChange',
}),
+ /**
+ * for field widgets that may have a large number of field changes quickly,
+ * it could be a good idea to debounce the changes. In that case, this is
+ * the suggested value.
+ */
+ DEBOUNCE: 1000,
/**
* Override init to debounce the input changes to make sure they are not
@@ -2044,6 +2050,7 @@ var AceEditor = AbstractField.extend({
});
return {
+ DebouncedField: DebouncedField,
EmailWidget: EmailWidget,
FieldBinaryFile: FieldBinaryFile,
FieldBinaryImage: FieldBinaryImage,