[UPD] use viewerJS 0.5.4, incorporate new suported file types

This commit is contained in:
Holger Brunn
2015-01-15 12:20:53 +01:00
committed by vancouver29
parent 181277ef6c
commit 5f0a8c032d
7 changed files with 637 additions and 611 deletions

View File

@@ -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(
{