Cleanup viewer
This commit is contained in:
parent
d9c4b85a69
commit
13a4007eb1
@ -16,7 +16,6 @@ var odfViewer = {
|
|||||||
FileActions.register(mime, 'View', OC.PERMISSION_READ, '', odfViewer.dispatch);
|
FileActions.register(mime, 'View', OC.PERMISSION_READ, '', odfViewer.dispatch);
|
||||||
FileActions.setDefault(mime, 'View');
|
FileActions.setDefault(mime, 'View');
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
dispatch : function(filename){
|
dispatch : function(filename){
|
||||||
@ -40,7 +39,7 @@ var odfViewer = {
|
|||||||
|
|
||||||
var webodfSource = (oc_debug !== true) ? 'webodf-debug' : 'webodf';
|
var webodfSource = (oc_debug !== true) ? 'webodf-debug' : 'webodf';
|
||||||
|
|
||||||
OC.addScript('documents', 'viewer/' + webodfSource).done(function() {
|
OC.addScript('documents', 'viewer/' + webodfSource, function() {
|
||||||
var location = fileDownloadPath($('#dir').val(), filename);
|
var location = fileDownloadPath($('#dir').val(), filename);
|
||||||
|
|
||||||
// fade out files menu and add odf menu
|
// fade out files menu and add odf menu
|
||||||
@ -56,7 +55,6 @@ var odfViewer = {
|
|||||||
|
|
||||||
// fade out file list and show pdf canvas
|
// fade out file list and show pdf canvas
|
||||||
$('table').fadeOut('slow').promise().done(function() {
|
$('table').fadeOut('slow').promise().done(function() {
|
||||||
;
|
|
||||||
var canvashtml = '<div id="odf-canvas"></div>';
|
var canvashtml = '<div id="odf-canvas"></div>';
|
||||||
$('table').after(canvashtml);
|
$('table').after(canvashtml);
|
||||||
// in case we are on the public sharing page we shall display the odf into the preview tag
|
// in case we are on the public sharing page we shall display the odf into the preview tag
|
||||||
@ -79,7 +77,6 @@ var odfViewer = {
|
|||||||
$('.actions,#file_access_panel').not('.hidden').fadeIn('slow');
|
$('.actions,#file_access_panel').not('.hidden').fadeIn('slow');
|
||||||
$('table').fadeIn('slow');
|
$('table').fadeIn('slow');
|
||||||
});
|
});
|
||||||
is_editor_shown = false;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user