[FIX] Prevent window scrolling when opening an m2o dialog

bzr revid: fme@openerp.com-20120912133656-z81oo9mi5s4yq22p
This commit is contained in:
Fabien Meghazi 2012-09-12 15:36:56 +02:00
parent ecd3a8a558
commit 83863d6f20
1 changed files with 2 additions and 1 deletions

View File

@ -2779,7 +2779,8 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
this.$drop_down = this.$el.find(".oe_m2o_drop_down_button");
this.$follow_button = $(".oe_m2o_cm_button", this.$el);
this.$follow_button.click(function() {
this.$follow_button.click(function(ev) {
ev.preventDefault();
if (!self.get('value')) {
self.focus();
return;