[FIX] have form widget elements behave correctly in case of classes with dots. Thanks valentin

bzr revid: xmo@openerp.com-20111004132854-sg8vo4m3b4bvtecf
This commit is contained in:
Xavier Morel
2011-10-04 15:28:54 +02:00
+2 -1
View File
@@ -685,7 +685,8 @@ openerp.web.form.Widget = openerp.web.Widget.extend(/** @lends openerp.web.form.
this.width = this.node.attrs.width;
},
start: function() {
this.$element = this.view.$element.find('.' + this.element_class);
this.$element = this.view.$element.find(
'.' + this.element_class.replace(/[^\r\n\f0-9A-Za-z_-]/g, "\\$&"));
},
process_modifiers: function() {
var compute_domain = openerp.web.form.compute_domain;