Some cleanup
This commit is contained in:
parent
922cdec6b8
commit
9d7983d13c
@ -7,22 +7,6 @@
|
||||
#office-content{
|
||||
padding-top: 3em;
|
||||
}
|
||||
#office-content.wide{
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#editing-sessions{
|
||||
position:absolute;
|
||||
left:0;
|
||||
padding:5px;
|
||||
top:3em;
|
||||
width:150px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#editing-sessions div{
|
||||
margin:5px 0;
|
||||
}
|
||||
|
||||
#odf_close{
|
||||
float:left;
|
||||
|
16
js/office.js
16
js/office.js
@ -19,7 +19,7 @@ var officeMain = {
|
||||
});
|
||||
});
|
||||
});
|
||||
setInterval(officeMain.updateInfo, 10000);
|
||||
//setInterval(officeMain.updateInfo, 10000);
|
||||
},
|
||||
initSession: function(response) {
|
||||
"use strict";
|
||||
@ -28,7 +28,7 @@ var officeMain = {
|
||||
var doclocation = response.es_id;
|
||||
|
||||
// fade out file list and show WebODF canvas
|
||||
$('.documentslist, #emptyfolder, #editing-sessions').fadeOut('slow').promise().done(function() {
|
||||
$('.documentslist, #emptyfolder').fadeOut('slow').promise().done(function() {
|
||||
// odf action toolbar
|
||||
var odfToolbarHtml =
|
||||
'<div id="odf-toolbar">' +
|
||||
@ -42,7 +42,6 @@ var officeMain = {
|
||||
'</div>';
|
||||
$('#controls').append(odfToolbarHtml);
|
||||
|
||||
$('#office-content').addClass('wide');
|
||||
var memberId, odfelement, odfcanvas, canvashtml =
|
||||
'<div id = "mainContainer" class="claro" style="">' +
|
||||
' <div id = "editor">' +
|
||||
@ -105,7 +104,6 @@ var officeMain = {
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
updateInfo : function(){
|
||||
var fileIds = [];
|
||||
$('.documentslist tr').each(function(i, e){
|
||||
@ -127,10 +125,6 @@ var officeMain = {
|
||||
);
|
||||
},
|
||||
|
||||
updateSessions: function() {
|
||||
$('#editing-sessions').load(OC.Router.generate('office_session_listhtml'), {});
|
||||
},
|
||||
|
||||
onInvite: function(event) {
|
||||
event.preventDefault();
|
||||
$('#invite-block').toggle();
|
||||
@ -155,9 +149,8 @@ var officeMain = {
|
||||
$('#mainContainer').remove();
|
||||
$('#odf-canvas').remove();
|
||||
$('.actions,#file_access_panel').fadeIn('slow');
|
||||
$('.documentslist, #emptyfolder, #editing-sessions').fadeIn('slow');
|
||||
$('.documentslist, #emptyfolder').fadeIn('slow');
|
||||
$(document.body).removeClass('claro');
|
||||
$('#office-content').removeClass('wide');
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -175,8 +168,7 @@ $(document).ready(function() {
|
||||
event.preventDefault();
|
||||
if ($(this).attr('data-esid')){
|
||||
officeMain.joinSession($(this).attr('data-esid'));
|
||||
}
|
||||
if ($(this).attr('data-file')){
|
||||
} else if ($(this).attr('data-file')){
|
||||
officeMain.startSession($(this).attr('data-file'));
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user