diff options
Diffstat (limited to 'addons/web/static/src/js')
13 files changed, 16 insertions, 16 deletions
diff --git a/addons/web/static/src/js/chrome/action_manager.js b/addons/web/static/src/js/chrome/action_manager.js index 3d2dc7a4076..746460bdc4f 100644 --- a/addons/web/static/src/js/chrome/action_manager.js +++ b/addons/web/static/src/js/chrome/action_manager.js @@ -451,7 +451,7 @@ var ActionManager = Widget.extend({ var prom = this._executeAction(action, options); prom.then(function () { // AAB: this should be done automatically in AbstractAction, so that - // it can be overriden by actions that have specific stuff to push + // it can be overridden by actions that have specific stuff to push // (e.g. Discuss, Views) self._pushState(controllerID, {}); }); @@ -644,7 +644,7 @@ var ActionManager = Widget.extend({ }, /** * Dispatches the given action to the corresponding handler to execute it, - * according to its type. This function can be overriden to extend the + * according to its type. This function can be overridden to extend the * range of supported action types. * * @private diff --git a/addons/web/static/src/js/chrome/action_mixin.js b/addons/web/static/src/js/chrome/action_mixin.js index 02345e7e969..fa13e64e63e 100644 --- a/addons/web/static/src/js/chrome/action_mixin.js +++ b/addons/web/static/src/js/chrome/action_mixin.js @@ -89,7 +89,7 @@ var ActionMixin = { * example, if the user has edited a form, maybe we should ask him if we * can discard all his changes when we switch to another action. In that * case, the action manager will call this method. If the returned - * promise is succesfully resolved, then we can destroy the current action, + * promise is successfully resolved, then we can destroy the current action, * otherwise, we need to stop. * * @returns {Promise} resolved if the action can be removed, rejected diff --git a/addons/web/static/src/js/core/utils.js b/addons/web/static/src/js/core/utils.js index bd9a8d1db64..945b63e9a37 100644 --- a/addons/web/static/src/js/core/utils.js +++ b/addons/web/static/src/js/core/utils.js @@ -330,7 +330,7 @@ var utils = { // better expressed in the scientific format. if (numberMagnitude >= 21) { // we do not use number.toExponential(decimals) because we want to - // avoid the possible useless O decimals: 1e.+24 prefered to 1.0e+24 + // avoid the possible useless O decimals: 1e.+24 preferred to 1.0e+24 number = Math.round(number * Math.pow(10, decimals - numberMagnitude)) / d2; // formatterCallback seems useless here. return number + 'e' + numberMagnitude; diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js index dc456d21ae0..1430c49ab18 100644 --- a/addons/web/static/src/js/fields/abstract_field.js +++ b/addons/web/static/src/js/fields/abstract_field.js @@ -175,7 +175,7 @@ var AbstractField = Widget.extend({ // to send it to the server. These functions are chosen according to // the 'widget' attrs if is is given, and if it is a valid key, with a // fallback on the field type, ensuring that the value is formatted and - // displayed according to the choosen widget, if any. + // displayed according to the chosen widget, if any. this.formatType = this.attrs.widget in field_utils.format ? this.attrs.widget : this.field.type; diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 0f13228526e..fed94598046 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -471,9 +471,9 @@ var FieldMany2One = AbstractField.extend({ // this is a stupid hack necessary to support the always_reload flag. // the field value has been reread by the basic model. We use it to - // display the full address of a patner, separated by \n. This is + // display the full address of a partner, separated by \n. This is // really a bad way to do it. Now, we need to remove the extra lines - // and hope for the best that noone tries to uses this mechanism to do + // and hope for the best that no one tries to uses this mechanism to do // something else. if (this.nodeOptions.always_reload) { value = this._getDisplayName(value); diff --git a/addons/web/static/src/js/fields/upgrade_fields.js b/addons/web/static/src/js/fields/upgrade_fields.js index 8dd1f9d3ae8..36af39567ac 100644 --- a/addons/web/static/src/js/fields/upgrade_fields.js +++ b/addons/web/static/src/js/fields/upgrade_fields.js @@ -47,7 +47,7 @@ var AbstractFieldUpgrade = { }); }, /** - * This function is meant to be overriden to insert the 'Enterprise' label + * This function is meant to be overridden to insert the 'Enterprise' label * JQuery node at the right place. * * @abstract @@ -98,7 +98,7 @@ var AbstractFieldUpgrade = { })); }, /** - * This function is meant to be overriden to reset the $el to its initial + * This function is meant to be overridden to reset the $el to its initial * state. * * @abstract diff --git a/addons/web/static/src/js/views/basic/basic_controller.js b/addons/web/static/src/js/views/basic/basic_controller.js index 473b070ace0..2fb6f6400c9 100644 --- a/addons/web/static/src/js/views/basic/basic_controller.js +++ b/addons/web/static/src/js/views/basic/basic_controller.js @@ -122,7 +122,7 @@ var BasicController = AbstractController.extend(FieldManagerMixin, { .then(this._discardChanges.bind(this, recordID || this.handle, options)); }, /** - * Method that will be overriden by the views with the ability to have selected ids + * Method that will be overridden by the views with the ability to have selected ids * * @returns {Array} */ diff --git a/addons/web/static/src/js/views/basic/basic_renderer.js b/addons/web/static/src/js/views/basic/basic_renderer.js index f73209a0330..99e6926d503 100644 --- a/addons/web/static/src/js/views/basic/basic_renderer.js +++ b/addons/web/static/src/js/views/basic/basic_renderer.js @@ -353,7 +353,7 @@ var BasicRenderer = AbstractRenderer.extend({ return _.findWhere(this.allModifiersData, {node: node}); }, /** - * This function is meant to be overriden in renderers. It takes a dataPoint + * This function is meant to be overridden in renderers. It takes a dataPoint * id (for a dataPoint of type record), and should return the corresponding * dataPoint. * diff --git a/addons/web/static/src/js/views/basic/basic_view.js b/addons/web/static/src/js/views/basic/basic_view.js index fde334d79d0..7fd8af532a0 100644 --- a/addons/web/static/src/js/views/basic/basic_view.js +++ b/addons/web/static/src/js/views/basic/basic_view.js @@ -359,7 +359,7 @@ var BasicView = AbstractView.extend({ }, /** * Processes a node of the arch (mainly nodes with tagname 'field'). Can - * be overriden to handle other tagnames. + * be overridden to handle other tagnames. * * @private * @param {Object} node diff --git a/addons/web/static/src/js/views/kanban/kanban_model.js b/addons/web/static/src/js/views/kanban/kanban_model.js index 8b1135d3f15..30af177214f 100644 --- a/addons/web/static/src/js/views/kanban/kanban_model.js +++ b/addons/web/static/src/js/views/kanban/kanban_model.js @@ -236,7 +236,7 @@ var KanbanModel = BasicModel.extend({ // Manually updates groups data. Note: this is done before the actual // save as it might need to perform a read group in some cases so those - // updated data might be overriden again. + // updated data might be overridden again. var record = self.localData[recordID]; var resID = record.res_id; // Remove record from its current group diff --git a/addons/web/static/src/js/views/kanban/kanban_renderer.js b/addons/web/static/src/js/views/kanban/kanban_renderer.js index ca6f8893cd8..2cf0b0dc070 100644 --- a/addons/web/static/src/js/views/kanban/kanban_renderer.js +++ b/addons/web/static/src/js/views/kanban/kanban_renderer.js @@ -84,7 +84,7 @@ function transformQwebTemplate(node, fields) { var KanbanRenderer = BasicRenderer.extend({ className: 'o_kanban_view', - config: { // the KanbanRecord and KanbanColumn classes to use (may be overriden) + config: { // the KanbanRecord and KanbanColumn classes to use (may be overridden) KanbanColumn: KanbanColumn, KanbanRecord: KanbanRecord, }, diff --git a/addons/web/static/src/js/views/list/list_editable_renderer.js b/addons/web/static/src/js/views/list/list_editable_renderer.js index 2740c8e1567..65bae3eea41 100644 --- a/addons/web/static/src/js/views/list/list_editable_renderer.js +++ b/addons/web/static/src/js/views/list/list_editable_renderer.js @@ -1083,7 +1083,7 @@ ListRenderer.include({ this._selectCell(rowIndex, fieldIndex, {event: event}); }, /** - * We need to manually unselect row, because noone else would do it + * We need to manually unselect row, because no one else would do it */ _onEmptyRowClick: function () { this.unselectRow(); diff --git a/addons/web/static/src/js/views/list/list_model.js b/addons/web/static/src/js/views/list/list_model.js index 25fdf28954c..900f3764b0e 100644 --- a/addons/web/static/src/js/views/list/list_model.js +++ b/addons/web/static/src/js/views/list/list_model.js @@ -20,7 +20,7 @@ odoo.define('web.ListModel', function (require) { //-------------------------------------------------------------------------- /** - * Overriden to add `groupData` when performing get on list datapoints. + * overridden to add `groupData` when performing get on list datapoints. * * @override * @see _readGroupExtraFields |
