Fix for empty doclist
This commit is contained in:
parent
d0084231c7
commit
3819ea07fc
@ -26,7 +26,7 @@ var officeMain = {
|
|||||||
var doclocation = response.genesis_url;
|
var doclocation = response.genesis_url;
|
||||||
|
|
||||||
// fade out files menu and add odf menu
|
// fade out files menu and add odf menu
|
||||||
$('.documentslist').fadeOut('slow').promise().done(function() {
|
$('.documentslist, #emptyfolder').fadeOut('slow').promise().done(function() {
|
||||||
// odf action toolbar
|
// odf action toolbar
|
||||||
var odfToolbarHtml =
|
var odfToolbarHtml =
|
||||||
'<div id="odf-toolbar">' +
|
'<div id="odf-toolbar">' +
|
||||||
@ -38,7 +38,7 @@ var officeMain = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// fade out file list and show WebODF canvas
|
// fade out file list and show WebODF canvas
|
||||||
$('table').fadeOut('slow').promise().done(function() {
|
$('.documentslist, #emptyfolder').fadeOut('slow').promise().done(function() {
|
||||||
var odfelement, odfcanvas, canvashtml =
|
var odfelement, odfcanvas, canvashtml =
|
||||||
'<div id = "mainContainer" class="claro" style="">'+
|
'<div id = "mainContainer" class="claro" style="">'+
|
||||||
'<div id = "editor">'+
|
'<div id = "editor">'+
|
||||||
@ -58,7 +58,7 @@ var officeMain = {
|
|||||||
'</div>',
|
'</div>',
|
||||||
bodyelement = document.getElementsByTagName('body')[0];
|
bodyelement = document.getElementsByTagName('body')[0];
|
||||||
bodyelement.className += " claro";
|
bodyelement.className += " claro";
|
||||||
$('table').after(canvashtml);
|
$('.documentslist, #emptyfolder').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
|
||||||
$('#preview').html(canvashtml);
|
$('#preview').html(canvashtml);
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ var officeMain = {
|
|||||||
$('#mainContainer').remove();
|
$('#mainContainer').remove();
|
||||||
$('#odf-canvas').remove();
|
$('#odf-canvas').remove();
|
||||||
$('.actions,#file_access_panel').fadeIn('slow');
|
$('.actions,#file_access_panel').fadeIn('slow');
|
||||||
$('table').fadeIn('slow');
|
$('.documentslist, #emptyfolder').fadeIn('slow');
|
||||||
bodyelement.className.replace(' claro', '');
|
bodyelement.className.replace(' claro', '');
|
||||||
webodfEditor.shutdown();
|
webodfEditor.shutdown();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user