[Fix]Pass event on click of download button.
bzr revid: vja@tinyerp.com-20120928063748-cnsecd8mmevb2fbu
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user