Merge pull request #1328 from ONLYOFFICE/fix/bugfix

[DE forms] Fix Bug 53766
This commit is contained in:
Julia Radzhabova 2021-11-17 13:46:40 +03:00 committed by GitHub
commit c2244cb5a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 19 deletions

View file

@ -513,6 +513,7 @@ define([
this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms);
this.api.asc_SetFastCollaborative(true);
this.api.asc_setAutoSaveGap(1);
this.api.SetCollaborativeMarksShowType(Asc.c_oAscCollaborativeMarksShowType.None);
}
var $parent = labelDocName.parent();

View file

@ -200,6 +200,10 @@
window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"];
if (stopLoading) {
document.body.removeChild(document.getElementById('loading-mask'));
} else {
var elem = document.querySelector('.loading-logo');
if (elem && (logo || logoDark)) {
elem.style.backgroundImage= 'none';
@ -209,6 +213,7 @@
img && img.setAttribute('src', /theme-dark/.test(document.body.className) ? logoDark || logo : logo || logoDark);
img.style.opacity = 1;
}
}
</script>
<div id="editor_sdk" class="viewer" style="overflow: hidden;" tabindex="-1"></div>
@ -239,17 +244,6 @@
<span id="box-tools"></span>
</div>
</div>
<script>
if (stopLoading) {
document.body.removeChild(document.getElementById('loading-mask'));
} else {
var elem = document.querySelector('.loading-logo img');
if (elem) {
logo && (elem.setAttribute('src', logo));
elem.style.opacity = 1;
}
}
</script>
<script>
window.requireTimeourError = function(){
var reqerr;