From 4a107613cadfab7c0d71446ae95958ee4b5c43ce Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 29 Oct 2012 16:36:53 +0100 Subject: [PATCH] [FIX] pad: javascript error in pad.js bzr revid: nicolas.vanhoren@openerp.com-20121029153653-m5f8uorbhqt4s8gp --- addons/pad/static/src/js/pad.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/pad/static/src/js/pad.js b/addons/pad/static/src/js/pad.js index cba2086b772..c1252642b91 100644 --- a/addons/pad/static/src/js/pad.js +++ b/addons/pad/static/src/js/pad.js @@ -6,6 +6,7 @@ openerp.pad = function(instance) { content: "", render_value: function() { var self = this; + var _super = _.bind(this._super, this); if (this.get("value") === false || this.get("value") === "") { self.view.dataset.call('pad_generate_url',{context:{ model: self.view.model, @@ -13,7 +14,7 @@ openerp.pad = function(instance) { object_id: self.view.datarecord.id }}).then(function(data) { if(data&&data.url){ - _super.apply(self,[data.url]); + _super(data.url); self.renderElement(); } });