[IMP] TranslateDialog#on_btn_save should return its mutex
bzr revid: fme@openerp.com-20120830102746-hqrzn8vh0rlsdvyu
This commit is contained in:
parent
a99e5cae0a
commit
a1e474fa81
|
@ -1135,9 +1135,9 @@ instance.web.TranslateDialog = instance.web.Dialog.extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
on_btn_save: function() {
|
on_btn_save: function() {
|
||||||
var trads = {},
|
var trads = {};
|
||||||
self = this,
|
var self = this;
|
||||||
trads_mutex = new $.Mutex();
|
var trads_mutex = new $.Mutex();
|
||||||
self.$fields_form.find('.oe_trad_field.touched').each(function() {
|
self.$fields_form.find('.oe_trad_field.touched').each(function() {
|
||||||
var field = $(this).attr('name').split('-');
|
var field = $(this).attr('name').split('-');
|
||||||
if (!trads[field[0]]) {
|
if (!trads[field[0]]) {
|
||||||
|
@ -1156,6 +1156,7 @@ instance.web.TranslateDialog = instance.web.Dialog.extend({
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.close();
|
this.close();
|
||||||
|
return trads_mutex;
|
||||||
},
|
},
|
||||||
on_btn_close: function() {
|
on_btn_close: function() {
|
||||||
this.close();
|
this.close();
|
||||||
|
|
Loading…
Reference in New Issue