[FIX] duplicate tag when press tab key two time. Bug 1154057
bzr revid: chm@openerp.com-20130607132203-rcvx6wu820o03tiu
This commit is contained in:
parent
6341ea655e
commit
27db64f7a0
|
@ -4108,7 +4108,7 @@ instance.web.form.FieldMany2ManyTags = instance.web.form.AbstractField.extend(in
|
||||||
ext: {
|
ext: {
|
||||||
autocomplete: {
|
autocomplete: {
|
||||||
selectFromDropdown: function() {
|
selectFromDropdown: function() {
|
||||||
$(this).trigger('hideDropdown');
|
this.trigger('hideDropdown');
|
||||||
var index = Number(this.selectedSuggestionElement().children().children().data('index'));
|
var index = Number(this.selectedSuggestionElement().children().children().data('index'));
|
||||||
var data = self.search_result[index];
|
var data = self.search_result[index];
|
||||||
if (data.id) {
|
if (data.id) {
|
||||||
|
@ -4117,6 +4117,7 @@ instance.web.form.FieldMany2ManyTags = instance.web.form.AbstractField.extend(in
|
||||||
ignore_blur = true;
|
ignore_blur = true;
|
||||||
data.action();
|
data.action();
|
||||||
}
|
}
|
||||||
|
this.trigger('setSuggestions', {result : []});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tags: {
|
tags: {
|
||||||
|
|
Loading…
Reference in New Issue