summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-05-30 09:52:52 +0200
committerThibault Delavallée <tde@openerp.com>2012-05-30 09:52:52 +0200
commit00749f2d206ca487961cd0a6a946df3c24f690e7 (patch)
tree38e68c576f8aa1cd401f1645773397ff6a88a3af /addons/web/static/src
parent69abde8d44ebe9d08d52cffd3972a61628df957c (diff)
[CLEAN] Cleaned some typos in comments.
bzr revid: tde@openerp.com-20120530075252-cp9d1lbm45cl81xb
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_form.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 6d310743cae..360131fd596 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -4084,9 +4084,9 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
this._super();
this.selected_value = null;
- /** preview before set_value only for selection fields, because of
+ /** preview in start only for selection fields, because of
* the dynamic behavior of many2one fields. */
- if (this.field.type == 'selection') {
+ if (this.field.type in ['selection']) {
this.render_list();
}
},
@@ -4110,8 +4110,8 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
},
/** Get the status list and render them
- * to_show: [[identifier, value_to_displaty]] where
- * - identifier = db value for a selection, id for a many2one
+ * to_show: [[identifier, value_to_display]] where
+ * - identifier = key for a selection, id for a many2one
* - display_val = label that will be displayed
* - ex: [[0, "New"]] (many2one) or [["new", "In Progress"]] (selection)
*/
@@ -4184,7 +4184,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
}
},
- /** Renders the widget. This function also check for statusbar_colors='{"pending": "blue"}'
+ /** Renders the widget. This function also checks for statusbar_colors='{"pending": "blue"}'
* attribute in the widget. This allows to set a given color to a given
* state (given by the key of (key, label)). */
render_elements: function () {