[ADD] dropdown arrow next to import autocompletes

bzr revid: xmo@openerp.com-20111024135521-aikh791r9j94moal
This commit is contained in:
Xavier Morel 2011-10-24 15:55:21 +02:00
parent ce45893633
commit a8b81ed575
2 changed files with 6 additions and 1 deletions

View File

@ -205,6 +205,10 @@ openerp.web.DataImport = openerp.web.Dialog.extend({
return;
}
this.$element.delegate('.oe-m2o-drop-down-button', 'click', function () {
$(this).prev('input').focus();
});
var self = this;
this.ready.then(function () {
var $fields = self.$element.find('.sel_fields').bind('blur', function () {

View File

@ -1461,7 +1461,8 @@
</tr>
<tr>
<td t-foreach="records[0]" t-as="column">
<input class="sel_fields" placeholder="--- Don't Import ---"/>
<input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
<img src="/web/static/src/img/down-arrow.png" /></span>
</td>
</tr>
<tr t-foreach="records" t-as="record" class="oe_import_grid-row">