[Fix]Pass event on click of download button.

bzr revid: vja@tinyerp.com-20120928063748-cnsecd8mmevb2fbu
This commit is contained in:
Vishmita 2012-09-28 12:07:48 +05:30
parent b6254d631a
commit 98e4725ce0
1 changed files with 2 additions and 2 deletions

View File

@ -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;
});