mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-23 13:52:13 -06:00
[UPD] use viewerJS 0.5.4, incorporate new suported file types
This commit is contained in:
committed by
vancouver29
parent
181277ef6c
commit
5f0a8c032d
@@ -36,7 +36,11 @@ openerp.attachment_preview = function(instance)
|
||||
openerp.attachment_preview.can_preview = function(extension)
|
||||
{
|
||||
return jQuery.inArray(
|
||||
extension, ['odt', 'odp', 'ods', 'fodt', 'pdf']) > -1;
|
||||
extension,
|
||||
[
|
||||
'odt', 'odp', 'ods', 'fodt', 'pdf', 'ott', 'fodp', 'otp',
|
||||
'fods', 'ots'
|
||||
]) > -1;
|
||||
};
|
||||
instance.web.Sidebar.include(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user