Merge pull request #282 from owncloud/viewer-controls

Do not change the controls bar
This commit is contained in:
Volkan Gezer 2014-06-20 14:23:46 +02:00
commit 5b8b1a4625

View File

@ -83,7 +83,6 @@ var odfViewer = {
$(attachToolbarTo).prepend(odfToolbarHtml); $(attachToolbarTo).prepend(odfToolbarHtml);
$('#odf-toolbar').css({position:'fixed'}); $('#odf-toolbar').css({position:'fixed'});
} else { } else {
$('#controls').css({left:'0px'});
$(attachToolbarTo).append(odfToolbarHtml); $(attachToolbarTo).append(odfToolbarHtml);
} }
@ -102,9 +101,6 @@ var odfViewer = {
FileList.setViewerMode(false); FileList.setViewerMode(false);
$('#odf-toolbar').remove(); $('#odf-toolbar').remove();
$('#odf-canvas').remove(); $('#odf-canvas').remove();
if (!odfViewer.isDocuments){
$('#controls').css({left:'auto'});
}
} }
}; };