Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-576557-msh into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-576557-msh/+merge/113732
Hello,
Fixed the issue of many2one autocomplete, autocomplete should be closed on
ui-content scroll, otherwise what happen when autocomplete is open and user
scroll content of the dialog then autocomplete box will remain as it is(on
absolute position where it was rendered).
Demo :- Sale -> Opportunity -> Open Customer Many2one resource -> write in
country many2one(for autocompelete) -> Now scroll the screen, you will see
autocomplete box remain on the absolute position.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-576557-msh/+merge/113732
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-576557-msh.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2012-06-29 15:28:11 +0000
+++ addons/web/static/src/js/view_form.js 2012-07-06 12:03:22 +0000
@@ -2092,6 +2092,14 @@
}
}
});
+
+ // Autocomplete close on dialog content scroll
+ this.$input.closest(".ui-dialog .ui-dialog-content").scroll(function(){
+ if(self.$input.autocomplete("widget").is(":visible")){
+ self.$input.autocomplete("close");
+ }
+ });
+
var anyoneLoosesFocus = function() {
if (!self.$input.is(":focus") &&
!self.$input.autocomplete("widget").is(":visible") &&
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp