[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
parent 98ae810f55
commit c53edb88ec
7 changed files with 637 additions and 611 deletions

View File

@@ -60,12 +60,17 @@ function loadDocument(documentUrl) {
var extension = documentUrl.split('.').pop(),
Plugin;
extension = extension.toLowerCase();
switch (extension) {
case 'odt':
case 'odp':
case 'ods':
case 'fodt':
case 'ott':
case 'odp':
case 'fodp':
case 'otp':
case 'ods':
case 'fods':
case 'ots':
loadPlugin('./ODFViewerPlugin', function () {
Plugin = ODFViewerPlugin;
});