mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 21:32:18 -06:00
[UPD] use viewerJS 0.5.4, incorporate new suported file types
This commit is contained in:
@@ -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