Bhumi Thakkar (Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-575292-bth 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-575292-bth/+merge/110763
Hello,
Move a popup with a dropdown active get bad behavior.
1. Sales => Sales => Opportunity
2. Open any record.
3. click on right side of many2one field and select open from options.
4. Dialogue is open for many2one field. click on any many2one field and drag
the dialogue box.
Observed: "Options of many2one field (autocomplete) is still opened and
position is bad."
Expected: "Autocomplete should be hide."
On mousedown event of dialogue, autocomplete element is hide.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-575292-bth/+merge/110763
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-575292-bth.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2012-06-14 08:40:09 +0000
+++ addons/web/static/src/js/view_form.js 2012-06-18 09:38:32 +0000
@@ -1984,6 +1984,12 @@
self.$input.focus();
}
});
+
+ // Autocomplete close on drag dialog
+ this.$input.closest(".ui-dialog").find(".ui-dialog-titlebar:first").mousedown(function(e){
+ 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