[Fix]Pass event on click of download button.
bzr revid: vja@tinyerp.com-20120928063748-cnsecd8mmevb2fbu
This commit is contained in:
parent
b6254d631a
commit
98e4725ce0
|
@ -4692,9 +4692,9 @@ instance.web.form.FieldBinaryFile = instance.web.form.FieldBinary.extend({
|
|||
this._super();
|
||||
if (this.get("effective_readonly")) {
|
||||
var self = this;
|
||||
this.$el.find('a').click(function() {
|
||||
this.$el.find('a').click(function(ev) {
|
||||
if (self.get('value')) {
|
||||
self.on_save_as();
|
||||
self.on_save_as(ev);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue