[FIX] corelib: JsonRPC was missing a get_url() method
bzr revid: fva@openerp.com-20120522155903-i2oz7qkmn8i4vtt8
This commit is contained in:
parent
882f6dc58e
commit
64240e7b0a
|
@ -1347,6 +1347,9 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({
|
|||
},
|
||||
on_rpc_error: function(error) {
|
||||
},
|
||||
get_url: function (file) {
|
||||
return this.prefix + file;
|
||||
},
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -284,9 +284,6 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
|
|||
}
|
||||
}
|
||||
},
|
||||
get_url: function (file) {
|
||||
return this.prefix + file;
|
||||
},
|
||||
/**
|
||||
* Cooperative file download implementation, for ajaxy APIs.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue