mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: changed preloading (71c937ae37)
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
var language;
|
||||
var userid;
|
||||
var directUrl;
|
||||
var formatManager;
|
||||
var formatManager = new FormatManager();
|
||||
|
||||
window.onload = function () {
|
||||
fetch('formats')
|
||||
@ -38,7 +38,12 @@ window.onload = function () {
|
||||
});
|
||||
formatManager = new FormatManager(formats);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
var urlScripts = jq("#loadScripts").attr("data-docs");
|
||||
var frame = '<iframe id="iframeScripts" width=1 height=1 style="position: absolute; visibility: hidden;" ></iframe>';
|
||||
jq("#loadScripts").html(frame);
|
||||
jq("#loadScripts iframe").attr("src", urlScripts);
|
||||
}
|
||||
|
||||
if (typeof jQuery != "undefined") {
|
||||
|
||||
@ -526,6 +526,10 @@ label .checkbox {
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
#loadScripts {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#iframeScripts {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
|
||||
@ -366,7 +366,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<iframe id="iframeScripts" src="<%= preloaderUrl %>" width=1 height=1 style="position: absolute; visibility: hidden;" ></iframe>
|
||||
<span id="loadScripts" data-docs="<%= preloaderUrl %>"></span>
|
||||
|
||||
<footer>
|
||||
<div class="center">
|
||||
|
||||
@ -252,7 +252,7 @@
|
||||
<div id="cancelEdit" class="button gray">Cancel</div>
|
||||
</div>
|
||||
|
||||
<iframe id="iframeScripts" src="<%= preloaderUrl %>" width=1 height=1 style="position: absolute; visibility: hidden;" ></iframe>
|
||||
<span id="loadScripts" data-docs="<%= preloaderUrl %>"></span>
|
||||
|
||||
<footer>
|
||||
<div class="center">
|
||||
|
||||
Reference in New Issue
Block a user