mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 10:28:40 -06:00
first set of fix in js
This commit is contained in:
parent
970384ad09
commit
c133a46acb
@ -40,9 +40,7 @@ odoo.define('attachment_preview.attachment_preview', function(require) {
|
||||
{
|
||||
var url = (window.location.origin || '') +
|
||||
'/attachment_preview/static/lib/ViewerJS/index.html#' +
|
||||
attachment_url.replace(window.location.origin, '') +
|
||||
'&title=' + encodeURIComponent(attachment_title) +
|
||||
'&ext=.' + encodeURIComponent(attachment_extension);
|
||||
attachment_url.replace(window.location.origin, '');
|
||||
window.open(url);
|
||||
};
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<t t-extend="Sidebar">
|
||||
<t t-jquery="span.oe_sidebar_delete_item" t-operation="before">
|
||||
<span t-if="section.name == 'files' and !item.callback and item.url" href="#" class="oe-sidebar-attachment-preview" t-att-data-id="item.id" t-att-data-url="item.url" t-attf-title="Preview #{item.name}">
|
||||
<img t-att-src='_s + "/web/static/src/img/icons/gtk-print-preview.png"' width="12" height="12" border="0"/>
|
||||
<img t-att-src='_s + "/web/static/src/img/icons/gtk-print-preview.png"' width="12" height="12" border="0" style="padding:10px;"/>
|
||||
</span>
|
||||
</t>
|
||||
</t>
|
||||
|
Loading…
Reference in New Issue
Block a user