[imp] more efficient selector.
bzr revid: valentin.lab@kalysto.org-20111004102050-http3jvu0sf78fmx
This commit is contained in:
parent
8c1e052007
commit
63cf2019e5
|
@ -688,10 +688,8 @@ openerp.web.form.Widget = openerp.web.Widget.extend(/** @lends openerp.web.form.
|
|||
this.width = this.node.attrs.width;
|
||||
},
|
||||
start: function() {
|
||||
// avoiding find('.' + this.element_class) form because it doesn't work
|
||||
// if class contains some dots.
|
||||
this.$element = this.view.$element
|
||||
.find('[class~="' + this.element_class + '"]');
|
||||
this.$element = this.view.$element.find(
|
||||
'.' + this.element_class.replace(/([#;&,.+*~\:!^$\[\]=>|\/])/g,'\\$1'));
|
||||
},
|
||||
process_modifiers: function() {
|
||||
var compute_domain = openerp.web.form.compute_domain;
|
||||
|
|
Loading…
Reference in New Issue