Access via public link for logged in users. Ref #45

This commit is contained in:
Victor Dubiniuk 2013-09-24 15:53:33 +03:00
parent 670016580f
commit 05df848a52
2 changed files with 9 additions and 1 deletions

View File

@ -86,6 +86,7 @@
} }
#odf-toolbar{ #odf-toolbar{
text-align: left;
position: absolute; position: absolute;
width: 100%; width: 100%;
padding:0; padding:0;

View File

@ -93,6 +93,13 @@ var documentsMain = {
var fileId = parent.location.hash.replace(/\W*/g, '') var fileId = parent.location.hash.replace(/\W*/g, '')
|| $("[name='document']").val() || $("[name='document']").val()
; ;
if ($("[name='document']").val()){
// !Login page mess wih WebODF toolbars
$(document.body).attr('id', 'body-user');
$('header,footer').hide();
}
if (!fileId){ if (!fileId){
documentsMain.show(); documentsMain.show();
} else { } else {