[Libreoffice-commits] online.git: loleaflet/html
Andras Timar
andras.timar at collabora.com
Fri Jun 15 10:34:34 UTC 2018
loleaflet/html/loading.html | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
New commits:
commit 3984206b6977ed57d660628a8203f515f98122f4
Author: Andras Timar <andras.timar at collabora.com>
Date: Fri Jun 15 11:55:48 2018 +0200
No need to load l10n framework for a page that appears for fragment of a second
Change-Id: Id23ab66fadb714316cdf73e93501b0cea870880d
Reviewed-on: https://gerrit.libreoffice.org/55850
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/html/loading.html b/loleaflet/html/loading.html
index 61a5edadd..a99cc7315 100644
--- a/loleaflet/html/loading.html
+++ b/loleaflet/html/loading.html
@@ -20,21 +20,13 @@
height: 100px;
}
</style>
- <link rel="localizations" href="/loleaflet/dist/l10n/localizations.json" type="application/vnd.oftn.l10n+json"/>
</head>
<body>
- <script src="/loleaflet/dist/l10n/json2.min.js"></script>
- <script src="/loleaflet/dist/l10n/l10n.min.js"></script>
<div class="spinner">
<canvas id="spinner" class="leaflet-progress-spinner-canvas"></canvas>
- <h4>Loading...</h4>
</div>
+ <script>
+ var spinnerInterval = window.parent.L.LOUtil.startSpinner(document.getElementById('spinner'), 1.5);
+ </script>
</body>
- <script>
- var translatableContent = document.getElementsByTagName("h4");
- for (var i=0, max=translatableContent.length; i < max; i++) {
- translatableContent[i].firstChild.nodeValue = translatableContent[i].firstChild.nodeValue.toLocaleString();
- }
- var spinnerInterval = window.parent.L.LOUtil.startSpinner(document.getElementById('spinner'), 1.5);
- </script>
</html>
More information about the Libreoffice-commits
mailing list