[imp] removed some more useless methods in fields

bzr revid: nicolas.vanhoren@openerp.com-20120418122341-7c9bue6ed3v1pidb
This commit is contained in:
niv-openerp 2012-04-18 14:23:41 +02:00
parent 1f2b45304e
commit a2ac0de1f2
1 changed files with 4 additions and 9 deletions

View File

@ -1666,10 +1666,8 @@ instance.web.form.AbstractField = instance.web.form.Widget.extend(/** @lends ins
this.on("change:value", this, function() {
if (! this._inhibit_on_change)
this._on_ui_change();
});
this.on('changed_value', this, function() {
this.check_css_flags();
this.trigger('changed_value');
this._check_css_flags();
});
},
start: function() {
@ -1709,7 +1707,7 @@ instance.web.form.AbstractField = instance.web.form.Widget.extend(/** @lends ins
is_false: function() {
return this.get('value') === false;
},
check_css_flags: function(show_invalid) {
_check_css_flags: function(show_invalid) {
if (this.field.translate) {
this.$element.find('.oe_field_translate').toggle(!this.field_manager.is_create_mode());
}
@ -1719,9 +1717,6 @@ instance.web.form.AbstractField = instance.web.form.Widget.extend(/** @lends ins
}
}
},
_on_ui_change: function() {
this.trigger('changed_value');
},
focus: function($element) {
if ($element) {
setTimeout(function() {
@ -2655,7 +2650,7 @@ instance.web.form.FieldOne2Many = instance.web.form.AbstractField.extend({
trigger_on_change: function() {
var tmp = this.doing_on_change;
this.doing_on_change = true;
this._on_ui_change();
this.trigger('changed_value');
this.doing_on_change = tmp;
},
load_views: function() {