Overlay on editor startup. Ref #8
This commit is contained in:
parent
435206718e
commit
9e42c3f6e9
@ -104,3 +104,15 @@
|
|||||||
#mainContainer{
|
#mainContainer{
|
||||||
position:absolute;
|
position:absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#documents-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
filter:alpha(opacity=50);
|
||||||
|
opacity: 0.5;
|
||||||
|
z-index: 1000;
|
||||||
|
background: #000 url('%webroot%/core/img/loading-dark.gif') 50% 50% no-repeat;
|
||||||
|
}
|
@ -78,6 +78,7 @@ var documentsMain = {
|
|||||||
// load the document and get called back when it's live
|
// load the document and get called back when it's live
|
||||||
documentsMain.webodfEditorInstance.openSession(response.es_id, memberId, function() {
|
documentsMain.webodfEditorInstance.openSession(response.es_id, memberId, function() {
|
||||||
documentsMain.webodfEditorInstance.startEditing();
|
documentsMain.webodfEditorInstance.startEditing();
|
||||||
|
documentsMain.hideOverlay();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -164,6 +165,12 @@ var documentsMain = {
|
|||||||
// });
|
// });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
showOverlay : function(){
|
||||||
|
$('<div id="documents-overlay"> </div>').hide().appendTo(document.body).fadeIn('slow');
|
||||||
|
},
|
||||||
|
hideOverlay : function(){
|
||||||
|
$('#documents-overlay').fadeOut('slow');
|
||||||
|
},
|
||||||
loadDocuments: function () {
|
loadDocuments: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
var def = new $.Deferred();
|
var def = new $.Deferred();
|
||||||
@ -252,6 +259,7 @@ $(document).ready(function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
documentsMain.isEditorMode = true;
|
documentsMain.isEditorMode = true;
|
||||||
|
documentsMain.showOverlay();
|
||||||
|
|
||||||
if ($(this).attr('data-esid')){
|
if ($(this).attr('data-esid')){
|
||||||
documentsMain.joinSession($(this).attr('data-esid'));
|
documentsMain.joinSession($(this).attr('data-esid'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user