fix broken claro styling; some cosmetics

This commit is contained in:
Tobias Hintze 2013-07-14 18:56:32 +02:00 committed by Tobias Hintze
parent 0307d4bb0c
commit 9b0044c968

View File

@ -50,11 +50,12 @@ var officeMain = {
'<div id="canvas"></div>'+ '<div id="canvas"></div>'+
'</div>'+ '</div>'+
'</div>'+ '</div>'+
'</div>'; '</div>',
bodyelement = document.getElementsByTagName('body')[0];
bodyelement.className += " claro";
$('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
// $('#preview').html(canvashtml); $('#preview').html(canvashtml);
webodfEditor.boot( webodfEditor.boot(
{ {
@ -73,14 +74,17 @@ var officeMain = {
}); });
}, },
onClose: function() { onClose: function() {
"use strict";
var bodyelement = document.getElementsByTagName('body')[0];
// Fade out odf-toolbar // Fade out odf-toolbar
$('#odf-toolbar').fadeOut('slow'); $('#odf-toolbar').fadeOut('slow');
// Fade out editor // Fade out editor
$('#odf-canvas').fadeOut('slow', function() { $('#mainContainer').fadeOut('slow', function() {
$('#odf-toolbar').remove(); $('#mainContainer').remove();
$('#odf-canvas').remove(); $('#odf-canvas').remove();
$('.actions,#file_access_panel').fadeIn('slow'); $('.actions,#file_access_panel').fadeIn('slow');
$('table').fadeIn('slow'); $('table').fadeIn('slow');
bodyelement.className.replace(' claro', '');
}); });
is_editor_shown = false; is_editor_shown = false;
} }