diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-10-27 00:55:15 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-10-27 00:55:15 +0200 |
| commit | a0ae570cbd2bc5339b983bc7fc8f583b2b78c99a (patch) | |
| tree | 991588d82ce9e93a6d2f3614e8b20cd2cfb786ab | |
| parent | 44fc0f6855eab762350c66adfb3d1d2bc0384d58 (diff) | |
[FIX] pad condition on name of attachement instead of url
bzr revid: al@openerp.com-20111026225515-rdfxvgk8vv9j055m
| -rw-r--r-- | addons/pad/static/src/js/pad.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pad/static/src/js/pad.js b/addons/pad/static/src/js/pad.js index 635c86a48dd..d6f2c1de26b 100644 --- a/addons/pad/static/src/js/pad.js +++ b/addons/pad/static/src/js/pad.js @@ -9,7 +9,7 @@ instance.web.form.SidebarAttachments = instance.web.form.SidebarAttachments.exte var self = this; var $padbtn = self.$element.find('button.pad'); var is_pad = function(a) { - return a.type == 'url' && _(a.url).startsWith(self.pad_prefix); + return a.type == 'url' && a.name == 'Pad'; }; if (_.any(attachments, is_pad)) { $padbtn.hide(); |
